built in operator: sselect

    description:
        sselect[k1, k2] seq
        select the k1'th to the k2'th elements from the given sequence
        indices start from 1, not 0
        final element has index -1, 2nd last element -2, and so on.

    examples:
        sselect[2,2] ssplit |abcdefgh>
            |b>

        sselect[2,3] (|a> + |b> . |c> + |d> . |e> . |f> + |g> + |h> . |i> + |j>)
            |c> + |d> . |e>

        sselect[4,7] ssplit[" "] |a b c d e f g h>
            |d> . |e> . |f> . |g>
            
        sselect[3,-3] ssplit[" "] |a b c d e f g h>
            |c> . |d> . |e> . |f>   

    see also:
        select

Home