Why is std.algorithm so complicated to use?

Jacob Carlborg doob at me.com
Tue Jul 10 02:35:46 PDT 2012


On 2012-07-10 08:59, Dmitry Olshansky wrote:

> Can you do it in other languages?

Sure, in Ruby, but that only works on arrays:

p [5, 3, 5, 6, 8].uniq.map{ |e| e.to_s }.sort

Prints:

["3", "5", "6", "8"]

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list