file: job.t package: muf status: alpha
Duplicate every entry in a block:
Stack: [ 4 2 12 | |keysKeysvals Stack: [ 4 4 2 2 12 12 |
This function is part of a MUF idiom used to sort a
block of objects on an arbitrarily computed set of keys: One
doubles the block using |keysKeysvals, uses
|for to replace alternating block entries by the
desired sort keys, uses |sort-keysvals to do the
actual sort, then uses |vals to discard the keys,
leaving only the sorted values.
Go to the first, previous, next, last section, table of contents.