Handbook
Glossary
take-rest-slice ( sequence-parser -- sequence/f )
Vocabulary
sequences
.
parser
Inputs
sequence-parser
a
sequence-parser
Outputs
sequence/f
a
sequence
or
f
Definition
USING:
accessors
kernel
math
sequences
;
IN:
sequences.parser
:
take-rest-slice
( sequence-parser -- sequence/f )
[
sequence>>
]
[
n>>
]
bi
2dup
[
length
]
dip
<
[
2drop
f
]
[
tail-slice
]
if
;
inline