Sorting algorithms/Radix sort: Difference between revisions
Content added Content deleted
m (→{{header|Tailspin}}: Must mark counting numbers as scalars) |
|||
Line 3,147: | Line 3,147: | ||
end bucketize |
end bucketize |
||
// Negatives get completed in wrong length-order, we need to collect by length and correct at the end |
// Negatives get completed in wrong length-order, we need to collect by length and correct at the end |
||
@: { done: 1, digit: 1, positives: [], negatives: [[]], buckets: [1..$base -> []]}; |
@: { done: 1, digit: 1"1", positives: [], negatives: [[]], buckets: [1..$base -> []]}; |
||
$... -> !bucketize |
$... -> !bucketize |
||
$@.done -> # |
$@.done -> # |