built in operator: top

    description:
        top[k] sp
        return the top k elements from the given sp
        indices start from 1, not 0
        if several elements all have the same coeff, then return all of them

    examples:
        top[3] rank split |a b c d e f g h>
            6|f> + 7|g> + 8|h>

    see also:
        select, sselect

Home