Why is std.algorithm so complicated to use?

Jacob Carlborg doob at me.com
Mon Jul 9 23:51:29 PDT 2012


On 2012-07-09 22:23, Ali Çehreli wrote:

> And a quick fix is to make an array first:
>
> auto str = ["foo", "bar"].map!(x => x)().array();
>
> Also note the added () for map, which is needed when compiled with
> -property.

If I first have to convert it to an array, then sort and then convert it 
to an array again. Isn't that missing the whole point of ranges.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list