RosettaCodeData/Task/Factorial/Nu/factorial.nu

4 lines
99 B
Text
Raw Permalink Normal View History

2023-12-16 21:33:55 -08:00
def 'math factorial' [] {[$in 1] | math max | 1..$in | math product}
..10 | each {math factorial}