Permutations: Difference between revisions

m
Line 5,691:
This follows the Go language non-recursive example, but is not limited to integers, or even to numbers.
 
{{works with|langur|0.13.5}}
<syntaxhighlight lang="langur">val .factorial = f if(.x < 2: 1; .x x self(.x - 1))
 
890

edits