Ranges and Take

Jacob via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 4 17:10:39 PDT 2016


Having access to iterators would solve the problem here I think. 
But everything is ranges and that wouldn't entirely fit. For a 
linked list though, you can create a range from a single 
iterator. The implementation of DList's Range is pretty much two 
iterators. Oh well, have to implement my own anyways I guess, 
since DList uses the garbage collector.


More information about the Digitalmars-d mailing list