Justin Johansson Wrote: > Jeremie Pelletier Wrote: > > > He meant range structs as found in std.range and their array wrappers in > > std.array. > > Oh, okay. Just groked src and looks like it is a D2 only thing. Do you > happen to know > what the derivation of the word "range" with respect to streams is? I > haven't come > across it before used in this context.
If you're familiar with C++, that's easy. Ranges are a generalization for a pair of iterators. If that doesn't make sense, think of an iterator as a read cursor in a stream/array/data structure. To safely scan with the cursor requires a starting point and an end point. Andrei has a video titled "iterators must go"