RosettaCodeData/Task/Factorial/Jq/factorial-1.jq
2017-09-25 22:28:19 +02:00

2 lines
52 B
Text

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