Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
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
seq
a
sequence
tailseq
a 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
;