Using std.algorithm how to uniq and sort a multidimensional array?

bearophile bearophileHUGS at lycos.com
Wed Jan 29 08:39:54 PST 2014


Meta:

> auto tags = tags.flatMap!uniq.array ?

That's another solution. In Phobos a flatMap can be useful (just 
as a zip overload that accepts a function to apply on the pairs, 
named zipWith in haskell: 
http://zvon.org/other/haskell/Outputprelude/zipWith_f.html ).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list