Handbook
Glossary
offset ( sequence-parser offset -- obj/f )
Vocabulary
sequences
.
parser
Inputs
sequence-parser
a
sequence-parser
offset
an
object
Outputs
obj/f
an
object
or
f
Word description
Return the element of the parsed sequence offset from the current position of the parser. Negative offsets will yield already parsed elements.
See also
advance
,
current
,
consume
,
next
Definition
USING:
accessors
kernel
math
sequences
;
IN:
sequences.parser
:
offset
( sequence-parser offset -- obj/f )
swap
[
n>>
+
]
[
sequence>>
?nth
]
bi
;
inline