sortign.extras: use second-unsafe.

db4
John Benediktsson 2012-09-19 10:23:58 -07:00
parent 40a8936fe6
commit ffbe20556b
1 changed files with 1 additions and 1 deletions

View File

@ -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