Why is std.algorithm so complicated to use?

Jacob Carlborg doob at me.com
Tue Jul 10 10:10:15 PDT 2012


On 2012-07-10 18:42, Daniel Murphy wrote:
> "Jacob Carlborg" <doob at me.com> wrote in message
> news:jthlpf$2pnb$1 at digitalmars.com...
>>
>> Can't "map" and "filter" return a random-access range if that's what they
>> receive?
>>
> map can, and does.

It doesn't seem to:

auto a = [3, 4].map!(x => x);
auto b = a.sort;

Result in one of the original errors I started this thread with.

-- 
/Jacob Carlborg




More information about the Digitalmars-d mailing list