Permutations/Rank of a permutation: Difference between revisions
Permutations/Rank of a permutation (view source)
Revision as of 12:48, 24 January 2024
, 4 months ago→{{header|Wren}}: Minor tidy
(New post.) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 2,516:
{{trans|Kotlin}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="
import "./fmt" for Fmt
var swap = Fn.new { |a, i, j|
Line 2,581:
{{out}}
Sample output:
<pre>
0 -> [1, 2, 0] -> 0
|