RosettaCodeData/Task/Y-combinator/PicoLisp/y-combinator-2.l

10 lines
127 B
Plaintext

# Factorial
(de fact (F)
(curry (F) (N)
(if (=0 N)
1
(* N (F (dec N))) ) ) )
: ((Y fact) 6)
-> 720