Handbook
Glossary
input-cursor? ( object -- ? )
Vocabulary
cursors
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
input-cursor
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
cursors
:
input-cursor?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
zip-cursor
eq?
[
drop
t
]
[
dup
\
hashtable-cursor
eq?
[
drop
t
]
[
dup
\
hash-set-cursor
eq?
[
drop
t
]
[
dup
\
sequence-cursor
eq?
[
drop
t
]
[
\
numeric-cursor
eq?
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;