Creating InputRanges from strings, files etc.
Vinay Sajip via Digitalmars-d-learn Thu, 08 Nov 2018 06:01:40 -0800
Excuse my ignorance, but from looking at the documentation on
std.range and a quick skim of the guides mentioned there near the
top, I can't see what the simple way is of creating an
InputRange!(ubyte) from strings, files etc. I would have expected
to find something in the DLang Tour about this, but couldn't find
anything. Please can someone tell me how to do it? Just to be
clear, I want to create an object which is an InputRange!(ubyte)
and pass that around, rather than e.g. iterate over a string or a
file.
- Creating InputRanges from str... Vinay Sajip via Digitalmars-d-learn
- Re: Creating InputRanges... rikki cattermole via Digitalmars-d-learn
- Re: Creating InputRanges... Paul Backus via Digitalmars-d-learn
- Re: Creating InputRa... Vinay Sajip via Digitalmars-d-learn
- Re: Creating InputRa... Vinay Sajip via Digitalmars-d-learn
- Re: Creating Inp... Alex via Digitalmars-d-learn
- Re: Creating Inp... Steven Schveighoffer via Digitalmars-d-learn
- Re: Creating... Vinay Sajip via Digitalmars-d-learn