RosettaCodeData/Task/Factorial/Self/factorial-3.self

2 lines
74 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
factorial: n = (n <= 1 ifTrue: 1 False: [n * (factorial: n predecessor)])