RosettaCodeData/Task/Factorial/Jq/factorial-1.jq
2023-07-01 13:44:08 -04:00

2 lines
52 B
Text

def fact:
reduce range(1; .+1) as $i (1; . * $i);