On Sunday, 27 October 2013 at 14:01:31 UTC, Derix wrote:
So, I wanted to wrap my head a little tighter around those strange animals that are lamdas.

I wrote the simpliest program utilizing a lambda :

import std.stdio;
void main(){
        writeln({return "foobar";});
}


You still have to call the lambda just like a function, with ():

import std.stdio;
void main() {
        writeln({return "foobar";}());
}

Reply via email to