Remove duplicates

bearophile bearophileHUGS at lycos.com
Tue May 21 16:10:48 PDT 2013


Namespace:

> http://dlang.org/phobos/std_algorithm.html#uniq

Just like squeeze, uniq requires the items to be sorted, to 
remove the duplicates. The function I am discussing here must 
keep the order of the not removed items.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list