Handbook
Glossary
?tail-slice ( seq end -- newseq ? )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Splitting sequences
Prev:
?tail ( seq end -- newseq ? )
Next:
split1 ( seq subseq -- before after )
Vocabulary
splitting
Inputs
seq
a
sequence
end
a
sequence
Outputs
newseq
a
slice
?
a
boolean
Word description
Like
?tail
, except the resulting sequence is a
slice
.
Definition
USING:
sequences
splitting.private
;
IN:
splitting
:
?tail-slice
( seq end -- newseq ? )
[
tail?
]
[
head-slice*
]
?chomp
;