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

2 lines
74 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
factorial: n = (n <= 1 ifTrue: 1 False: [n * (factorial: n predecessor)])