When does take modify the underlying iterator?

Cauterite via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 16 14:18:09 PDT 2016


On Tuesday, 16 August 2016 at 21:01:14 UTC, cy wrote:
>

This has also been annoying me lately, so I came up with this 
workaround:

InputRange!T X = inputRangeObject(Src);

X.take(6); // remove+return items 0 to 5
X.take(3); // remove+return items 6 to 8


More information about the Digitalmars-d-learn mailing list