Better lambdas!!!!!!!!!!

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 10 10:57:02 PDT 2015


On Thursday, 10 September 2015 at 17:55:06 UTC, Prudence wrote:
> void myfunc(double delegate(int i, int z, float f)) {....}
>
>
> myfunc((int i, int z, float f) { return i*z*f; } }


You could also write `myfunc((i,z,f) => i*z*f);` right now. The 
names are easy to do.



More information about the Digitalmars-d mailing list