asSequence
Returns a Sequence of the different PathSegment instances that form this Path, in hierarchical order.
For example, the path Path(PathSegment.Indexed(5), Path(PathSegment.Field("foo"), null)) represents the path "foo.5" and would return the sequence [PathSegment.Field("foo"), PathSegment.Indexed(5)].