RosettaCodeData/Task/Y-combinator/PicoLisp/y-combinator-2.l
2023-07-01 13:44:08 -04: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