June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -4,7 +4,8 @@ sub radsort (@ints) {
|
|||
|
||||
for reverse ^$maxlen -> $r {
|
||||
my @buckets = @list.classify( *.substr($r,1) ).sort: *.key;
|
||||
if !$r and @buckets[0].key eq '-' { @buckets[0].value .= reverse }
|
||||
@buckets[0].value = @buckets[0].value.reverse.List
|
||||
if !$r and @buckets[0].key eq '-';
|
||||
@list = flat map *.value.values, @buckets;
|
||||
}
|
||||
@list».Int;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue