"for" statement issue

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 22 13:52:39 PDT 2016


On 22.10.2016 17:53, Nick Treleaven wrote:
>>
>> [1,2,3].fold!{a, b => a + b}.writeln;
>
> Probably (a, b => a + b) could be legal.

It is. (It means pass a and the lambda b => a + b.)


More information about the Digitalmars-d mailing list