Handbook
Glossary
but-last ( seq -- headseq )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Subsequences and slices
Prev:
rest ( seq -- tailseq )
Next:
unclip ( seq -- rest first )
Vocabulary
sequences
Inputs
seq
a
sequence
Outputs
headseq
a new sequence
Word description
Outputs a new sequence consisting of the input sequence with the last item removed.
Errors
Throws an error on an empty sequence.
See also
first
,
first2
,
last
,
last2
,
but-last-slice
,
rest
,
rest-slice
Definition
IN:
sequences
:
but-last
( seq -- headseq )
1
head*
;