Handbook
Glossary
assoc-size ( assoc -- n )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Associative mapping protocol
Prev:
at* ( key assoc -- value/f ? )
Next:
>alist ( assoc -- newassoc )
Vocabulary
assocs
Inputs
assoc
an
assoc
Outputs
n
a non-negative integer
Generic word contract
Outputs the number of entries stored in the assoc.
Definition
IN:
assocs
GENERIC:
assoc-size
( assoc -- n )
Methods
USING:
accessors
assocs
sequences
xml.data
;
M:
attrs
assoc-size
alist>>
length
;
USING:
accessors
assocs
biassocs
;
M:
biassoc
assoc-size
from>>
assoc-size
;
USING:
accessors
assocs
cache
;
M:
cache-assoc
assoc-size
assoc>>
assoc-size
;
USING:
accessors
assocs
sequences
;
M:
enumerated
assoc-size
seq>>
length
;
inline
USING:
assocs
env
environment
kernel
sequences
;
M:
env
assoc-size
drop
(os-envs)
length
;
USING:
assocs
kernel
;
M:
f
assoc-size
drop
0
;
inline
USING:
accessors
assocs
hashtables
kernel
math
;
M:
hashtable
assoc-size
[
count>>
]
[
deleted>>
]
bi
-
;
inline
USING:
accessors
assocs
xmode.keyword-map
;
M:
keyword-map
assoc-size
assoc>>
assoc-size
;
USING:
accessors
assocs
linked-assocs
;
M:
linked-assoc
assoc-size
assoc>>
assoc-size
;
USING:
accessors
assocs
classes
classes.tuple.private
mirrors
;
M:
mirror
assoc-size
object>>
class-of
class-size
;
USING:
accessors
assocs
sequences
sequences.n-based
;
M:
n-based-assoc
assoc-size
seq>>
length
;
USING:
assocs
classes.tuple.private
named-tuples
;
M:
named-tuple
assoc-size
tuple-size
;
USING:
assocs
kernel
math
pairs
;
M:
pair
assoc-size
[
assoc-size
1
+
]
[
drop
1
]
if-hash
;
inline
USING:
accessors
assocs
persistent.hashtables
;
M:
persistent-hash
assoc-size
count>>
;
USING:
assocs
quadtrees
quadtrees.private
;
M:
quadtree
assoc-size
quadtree-size
;
USING:
assocs
redis
;
M:
redis
assoc-size
[
redis-dbsize
]
with-redis
;
USING:
assocs
sequences
;
M:
sequence
assoc-size
length
;
inline
USING:
accessors
assocs
kernel
xml.data
;
M:
tag
assoc-size
[
attrs>>
]
call
\
assoc-size
execute
;
USING:
accessors
assocs
tokyo.abstractdb
tokyo.alien.tcadb
;
M:
tokyo-abstractdb
assoc-size
handle>>
tcadbrnum
;
USING:
accessors
assocs
tokyo.alien.tcrdb
tokyo.remotedb
;
M:
tokyo-remotedb
assoc-size
handle>>
tcrdbrnum
;
USING:
accessors
assocs
trees
;
M:
tree
assoc-size
count>>
;
USING:
accessors
assocs
math
sequences
vlists
;
M:
valist
assoc-size
vlist>>
length
2/
;
USING:
accessors
assocs
hashtables.wrapped
;
M:
wrapped-hashtable
assoc-size
underlying>>
assoc-size
;
inline
USING:
accessors
assocs
zim
;
M:
zim
assoc-size
header>>
entry-count>>
;