joiner: How to iterate over immutable ranges?
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Feb 14 17:42:30 PST 2016
On Sunday, 14 February 2016 at 19:32:31 UTC, Bastiaan Veelo wrote:
> Thanks. I didn't know that iterating a range means mutating its
> contents. I still don't quite get it, and it is probably
> because I don't fully understand ranges. I think what confuses
> me the most is their analogy to containers. It's no problem to
> iterate over a container of immutable data, but it is for a
> range.
Maybe this [1] will help shed some light.
[1] https://www.packtpub.com/books/content/understanding-ranges
More information about the Digitalmars-d-learn
mailing list