Permutations: Difference between revisions
→{{header|langur}}
(Add SML) |
Langurmonkey (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 5,691:
This follows the Go language non-recursive example, but is not limited to integers, or even to numbers.
<syntaxhighlight lang="langur">val .factorial =
val .permute =
if .list is not
val .limit = 10
Line 5,729:
for .e in .permute([1, 3.14, 7]) {
writeln .e
}
{{out}}
|