GenericPath.bySegment2

Iterates over the individual segments of the path.

Returns a forward range of Segment2s.

struct GenericPath(F)
@safe @property const
bySegment2
()

Examples

InetPath p = "foo/bar/baz";
assert(p.bySegment2.equal([
	InetPath.Segment2("foo", '/'),
	InetPath.Segment2("bar", '/'),
	InetPath.Segment2("baz")
]));

Meta