How to use ranges?

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 23 05:54:32 PDT 2015


On 8/24/2015 12:52 AM, Doolan wrote:
> On Sunday, 23 August 2015 at 10:38:53 UTC, Rikki Cattermole wrote:
>> On 8/23/2015 10:17 PM, Doolan wrote:
>> Have a read of:
>> https://github.com/rikkimax/twp-d/blob/master/manuscript/content/idioms/ranges.md
>>
>>
>> Let me know what you think :)
>
> I think I'm a little more confused than before... this says there are
> two kinds of ranges and I thought there were five??

There are more, but input/output ranges are the core two.
They underpin all the others.

Generally speaking these are the two that you will be using. The others 
such as ForwardRange are really just optional extras.


More information about the Digitalmars-d-learn mailing list