Handbook
Glossary
consume ( sequence-parser -- obj/f )
Vocabulary
sequences
.
parser
Inputs
sequence-parser
a
sequence-parser
Outputs
obj/f
an
object
or
f
Word description
Returns the current element and advances the parser.
See also
advance
,
current
,
next
,
offset
Definition
USING:
kernel
;
IN:
sequences.parser
:
consume
( sequence-parser -- obj/f )
[
current
]
[
advance
drop
]
bi
;
inline