Sorting algorithms/Permutation sort: Difference between revisions
Sorting algorithms/Permutation sort (view source)
Revision as of 09:23, 19 August 2018
, 5 years ago→{{header|jq}}
Thundergnat (talk | contribs) m (→{{header|Ring}}: Remove vanity tags) |
m (→{{header|jq}}) |
||
Line 828:
if length == 0 then []
else
. as $in
| range(0;length) as $i
| ($in|del(.[$i])|permutations)
| [$in[$i]] + .
|