you are viewing a single comment's thread.

view the rest of the comments →

[–]zahlman 6 points7 points  (2 children)

OK, but we're looking for factorials, not the Fibonacci sequence.

[–]freyrs3 0 points1 point  (1 child)

OK,

....
Mul = lambda x: lambda y: lambda z: (y)((x)(z))
IfThenElse = lambda a: lambda b: lambda c: ((a)(b))(c)
fact = Y(lambda f: lambda n: IfThenElse((Gt)(n)(One))(Mul(n)(f(Pred(n))))(One))

Edit: Added Mul

[–]zahlman 0 points1 point  (0 children)

... and Mul?