rest ( seq -- tailseq )
Factor documentation > Factor handbook > The language > Collections > Sequence operations > Subsequences and slices
Prev:tail* ( seq n -- tailseq )
Next:but-last ( seq -- headseq )


Vocabulary
sequences

Inputs and outputs
seqa sequence
tailseqa new sequence


Word description
Outputs a new sequence consisting of the input sequence with the first item removed.

Errors
Throws an error on an empty sequence.

Definition
IN: sequences

: rest ( seq -- tailseq ) 1 tail ;