Handbook
Glossary
cursor-key-value ( cursor -- key value )
Vocabulary
cursors
Inputs
cursor
an
object
Outputs
key
an
object
value
an
object
Definition
IN:
cursors
GENERIC:
cursor-key-value
( cursor -- key value )
Methods
USING:
cursors
cursors.private
kernel
;
M:
input-cursor
cursor-key-value
dup
cursor-valid?
[
cursor-key-value-unsafe
]
[
invalid-cursor
]
if
;
inline
USING:
accessors
cursors
kernel
;
M:
numeric-cursor
cursor-key-value
value>>
dup
;
inline
USING:
accessors
cursors
kernel
sequences
;
M:
sequence-cursor
cursor-key-value
[
n>>
dup
]
[
seq>>
]
bi
nth
;
inline
USING:
accessors
cursors
kernel
;
M:
zip-cursor
cursor-key-value
[
keys>>
cursor-value-unsafe
]
[
values>>
cursor-value-unsafe
]
bi
;
inline