Merging one Array with Another

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 6 23:53:38 PDT 2015


On Wednesday, 6 May 2015 at 16:05:15 UTC, Andrea Fontana wrote:
> Maybe a way like this could be useful:
> http://dpaste.dzfl.pl/7b4b37b490a7

If r is a SortedRange this is very unneccesary wasteful because 
of the use AA.

In that case you, instead, only want to remove equal consequtive 
elements without the need for any AA.

I'm guessing there's already an algorithm for this somewhere in 
Phobos.

Ideas anyone?


More information about the Digitalmars-d-learn mailing list