Handbook
Glossary
assoc? ( object -- ? )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Associative mapping protocol
Prev:
assoc
Next:
at* ( key assoc -- value/f ? )
Vocabulary
assocs
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
assoc
class.
Definition
USING:
cache
classes.tuple.private
env
kernel
kernel.private
math.private
redis
sequences
sequences.n-based
slots.private
tokyo.abstractdb
tokyo.remotedb
zim
;
IN:
assocs
:
assoc?
( object -- ? )
dup
tag
1
swap
fixnum-shift-fast
0
fixnum-bitand
0
eq?
not
[
drop
t
]
[
dup
dup
tuple?
[
layout-of
dup
7
slot
dup
\
tokyo-remotedb
eq?
[
drop
t
]
[
dup
\
tokyo-abstractdb
eq?
[
drop
t
]
[
dup
\
n-based-assoc
eq?
[
drop
t
]
[
dup
\
redis
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
[
drop
t
]
[
dup
1
slot
11
fixnum>=
[
11
slot
dup
\
zim
eq?
[
drop
t
]
[
\
cache-assoc
eq?
]
if
]
[
drop
f
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
dup
env?
[
drop
t
]
[
sequence?
]
if
]
if
]
if
;