Merging one Array with Another

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 1 12:08:50 PDT 2015


What's the fastest Phobos-way of doing either

     x ~= y; // append
     x = x.uniq; // remove duplicates

or

     x = (x ~ y).uniq; // append and remove duplicates in one go

provided that

     T[] x, y;

?


More information about the Digitalmars-d-learn mailing list