Permutations: Difference between revisions
m
→{{header|Wren}}: Minor tidy
m (→{{header|Sidef}}: updated code) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 9,886:
===Recursive===
{{trans|Kotlin}}
<syntaxhighlight lang="
permute = Fn.new { |input|
if (input.count == 1) return [input]
Line 9,922:
{{libheader|Wren-math}}
Output modified to follow the pattern of the recursive version.
<syntaxhighlight lang="
var input = [1, 2, 3]
Line 9,964:
===Library based===
{{libheader|Wren-perm}}
<syntaxhighlight lang="
var a = [1, 2, 3]
|