Functional vs simple code

Tommi tommitissari at hotmail.com
Tue Oct 2 21:07:01 PDT 2012


On Wednesday, 3 October 2012 at 01:21:38 UTC, ixid wrote:
> If it were (range, seed) then there would be no problem:
>
> [1,1,1].reduce!"a + b + 2"(0).writeln; // == 9

My thoughts exactly.


More information about the Digitalmars-d-learn mailing list