Function GenericPath.bySegment
Iterates over the individual segments of the path.
auto bySegment() const @property;
Returns a forward range of Segment
s.
Example
InetPath p = "foo/bar/baz";
assert(p .bySegment .equal([
InetPath .Segment("foo", '/'),
InetPath .Segment("bar", '/'),
InetPath .Segment("baz")
]));