RosettaCodeData/Task/Y-combinator/PicoLisp/y-combinator-2.l
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

9 lines
127 B
Text

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