sortign.extras: use second-unsafe.
parent
40a8936fe6
commit
ffbe20556b
|
@ -4,4 +4,4 @@ IN: sorting.extras
|
|||
: argsort ( seq quot: ( obj1 obj2 -- <=> ) -- sortedseq )
|
||||
[ dup length iota zip ] dip
|
||||
[ [ first-unsafe ] bi@ ] prepose
|
||||
sort [ 1 swap nth-unsafe ] map! ; inline
|
||||
sort [ second-unsafe ] map! ; inline
|
||||
|
|
Loading…
Reference in New Issue