it can be useful when comparing two paths and testing whether then contain the same number/types of segments