Anonymous user
Sorting algorithms/Sleep sort: Difference between revisions
m
Improved the formatting of the jq code (x2)
m (Improved the formatting of the jq code) |
m (Improved the formatting of the jq code (x2)) |
||
Line 724:
else
{ unsorted: [.unsorted[] | .t = .t - 1 | select(.t != 0)]
, sorted: (.sorted + [.unsorted[] | .t = .t - 1 | select(.t == 0) | .v]) }
| f
end;
|