Lambda returning a lambda?

aliak something at something.com
Thu Feb 1 11:51:11 UTC 2018


Is there a way to do this:

import std.stdio;

void main()
{
     alias f = (a) => (b) => a * b;
     f(2)(3).writeln;
}

Error now is: Error: template lambda has no type

Cheers


More information about the Digitalmars-d-learn mailing list