July 13, 2016 Re: mismatch and return value | ||||
---|---|---|---|---|
| ||||
Posted in reply to celavek | 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.
|
Copyright © 1999-2021 by the D Language Foundation