Lambda functions in D
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 9 04:59:02 PDT 2015
On Saturday, 9 May 2015 at 11:49:48 UTC, Timon Gehr wrote:
> assert((function int(int
> x)=>x?x*__traits(parent,{})(x-1):1)(10)==3628800);
Thanks. Yes, it is similar to what I wanted :)
More information about the Digitalmars-d-learn
mailing list