rest ( seq -- tailseq )
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.

See also
first, last, but-last, but-last-slice, rest-slice

Definition

: rest ( seq -- tailseq ) 1 tail ;