| Grade Down | \: _ _ _ | Sort Down |
\: grades any argument, yielding a permutation
vector; (\:y){y sorts y in descending order.
For example:
]g=:\:y=:3 1 4 2 1 3 3
2 0 5 6 3 1 4
g{y
4 3 3 3 2 1 1
|
x\:y is (\:y){x ; i.e., x
is sorted to an order specified by y .
In particular, y\:y (or \:~y)
sorts y . For example: \:~ 'abecedarian' rnieedcbaaa \:~"1 'dozen',:'disk' zoned skid |
]n=: 3 1 4 1 6,2 7 1 8 3,:6 1 8 0 3
3 1 4 1 6
2 7 1 8 3
6 1 8 0 3
\: n
2 0 1
\:~ >;:'when eras die, their legacies'
when
their
legacies
eras
die
,
See Grade Up (/:) for the treatment
of complex and boxed arguments.