Handbook
Glossary
arg-sort ( seq -- indices )
Vocabulary
sequences
.
extras
Inputs
seq
a
sequence
Outputs
indices
an
object
Word description
Given a sequence
seq
, push a sequence of indices that when indexed into, sort the given sequence.
Definition
USING:
assocs
sorting
;
IN:
sequences.extras
:
arg-sort
( seq -- indices )
zip-index
sort-keys
values
;