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
seqa sequence


Outputs
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, first2, last, last2, but-last, but-last-slice, rest-slice

Definition

: rest ( seq -- tailseq ) 1 tail ;