Sorting after map

clueless invalid at email.address
Tue Oct 19 23:26:12 PDT 2010


Hi. I want to have a sorted result of map-function, that is (in pseudocode):

sorted(map!(fun)(arr))

How can I do that? I have tried something like:

auto s = map!(fun)(arr);
//sort(s);
//sort(s[]);
//sort(s.dup);
writeln(s);

but without success.

Thanks in advance.


More information about the Digitalmars-d-learn mailing list