Sorting algorithms/Permutation sort: Difference between revisions

m
m (→‎{{header|Ring}}: Remove vanity tags)
Line 828:
if length == 0 then []
else
. as $in | range(0;length) | . as $i
| range(0;length) as $i
| ($in|del(.[$i])|permutations)
| [$in[$i]] + .
2,442

edits