mismatch and return value

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 13 04:26:27 PDT 2016


On Wednesday, 13 July 2016 at 11:11:51 UTC, celavek wrote:
> I misunderstood the doc and I got a bit confused by the range - 
> in C++ I would have incremented the iterators but here I did 
> not know what to do exactly as I could not match the 2 
> different concepts in functionality.

it mostly maps to `.popFront()` call in this case, to remove 
processed element(s). D ranges are somewhere between "iterators" 
and "generators" (and can represent both). this may be confusing, 
yeah.


More information about the Digitalmars-d-learn mailing list