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

Gary Willoughby dev at nomad.so
Tue Jan 28 06:46:46 PST 2014


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

e.g. the uniq function takes a function as a predicate but i'm 
confused how to handle the multiple dimensions.

     string[][] tags;

     tags = tags.uniq!("a[0][1] == b[1][1]").array;

The above is my attempt and it failed.


More information about the Digitalmars-d-learn mailing list