Permutations: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) m (→{{header|Langur}}: replace tabs with spaces) |
Langurmonkey (talk | contribs) m (→{{header|Langur}}: comments) |
||
Line 3,715: | Line 3,715: | ||
=={{header|Langur}}== |
=={{header|Langur}}== |
||
This follows the Go language non-recursive example, but is not limited to integers, or even to numbers. |
|||
{{trans|Go}} |
|||
<lang Langur>val .factorial = f if(.x < 2: 1; .x x self(.x - 1)) |
<lang Langur>val .factorial = f if(.x < 2: 1; .x x self(.x - 1)) |
||