Recursive lambda functions?
Ilya Yaroshenko
ilyayaroshenko at gmail.com
Mon Dec 30 13:15:42 PST 2013
On Monday, 30 December 2013 at 12:24:28 UTC, lomereiter wrote:
> Use Y combinator?
> http://forum.dlang.org/thread/mailman.157.1385247528.2552.digitalmars-d-learn@puremagic.com#post-l6rgfq:24g5o:241:40digitalmars.com
This is not lambda =(
I want something like
enum factrorial5 = (a => a == 0 ? 1 : a * __lambda(a-1))(5);
//Recursive pure lambda function
More information about the Digitalmars-d-learn
mailing list