How to sort a range

Edwin van Leeuwen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 9 04:31:18 PST 2016


On Wednesday, 9 March 2016 at 12:21:55 UTC, rcorre wrote:
>> If you are looking for a lazy uniq that works on non sorted 
>> ranges, I implemented one not to long ago:
>> http://github.com/BlackEdder/ggplotd/blob/master/source/ggplotd/range.d
>
> That sounds like the kind of thing I was looking for. I'll take 
> a look, thanks!

Well that one does allocate, because it keeps track of which 
values have already been seen.


More information about the Digitalmars-d-learn mailing list