Handbook
Glossary
clear-assoc ( assoc -- )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Associative mapping protocol
Prev:
delete-at ( key assoc -- )
Next:
value-at* ( value assoc -- key/f ? )
Vocabulary
assocs
Inputs
assoc
an
assoc
Outputs
None
Generic word contract
Removes all entries from the assoc.
Side effects
Modifies
assoc
Definition
IN:
assocs
GENERIC:
clear-assoc
( assoc -- )
Methods
USING:
accessors
assocs
kernel
xml.data
;
M:
attrs
clear-assoc
f
>>alist
drop
;
USING:
accessors
assocs
biassocs
kernel
;
M:
biassoc
clear-assoc
[
from>>
clear-assoc
]
[
to>>
clear-assoc
]
bi
;
USING:
accessors
assocs
cache
destructors
kernel
;
M:
cache-assoc
clear-assoc
assoc>>
[
values
dispose-each
]
[
clear-assoc
]
bi
;
USING:
accessors
assocs
sequences
;
M:
enumerated
clear-assoc
seq>>
delete-all
;
inline
USING:
assocs
env
environment
kernel
sequences
;
M:
env
clear-assoc
drop
os-envs
keys
[
unset-os-env
]
each
;
USING:
assocs
kernel
;
M:
f
clear-assoc
drop
;
inline
USING:
accessors
assocs
hashtables
hashtables.private
kernel
sequences
;
M:
hashtable
clear-assoc
[
init-hash
]
[
array>>
[
drop
+empty+
]
map!
drop
]
bi
;
USING:
accessors
assocs
kernel
xmode.keyword-map
;
M:
keyword-map
clear-assoc
[
assoc>>
clear-assoc
]
[
invalid-no-word-sep
]
bi
;
USING:
accessors
assocs
deques
kernel
linked-assocs
;
M:
linked-assoc
clear-assoc
[
assoc>>
clear-assoc
]
[
dlist>>
clear-deque
]
bi
;
USING:
assocs
kernel
mirrors
;
M:
mirror
clear-assoc
[
object-slots
]
keep
\
clear-assoc
mirror-slot-removal
;
USING:
accessors
assocs
sequences
sequences.n-based
;
M:
n-based-assoc
clear-assoc
seq>>
delete-all
;
USING:
accessors
assocs
kernel
quadtrees
;
M:
quadtree
clear-assoc
t
>>leaf?
f
>>point
f
>>value
drop
;
USING:
assocs
redis
;
M:
redis
clear-assoc
[
redis-flushdb
]
with-redis
;
USING:
assocs
sequences
;
M:
sequence
clear-assoc
delete-all
;
inline
USING:
accessors
assocs
classes.struct.prettyprint
;
M:
struct-mirror
clear-assoc
object>>
reset-struct-slots
;
USING:
accessors
assocs
kernel
xml.data
;
M:
tag
clear-assoc
[
attrs>>
]
call
\
clear-assoc
execute
;
USING:
accessors
assocs
kernel
tokyo.abstractdb
tokyo.alien.tcadb
;
M:
tokyo-abstractdb
clear-assoc
handle>>
tcadbvanish
drop
;
USING:
accessors
assocs
kernel
tokyo.alien.tcrdb
tokyo.remotedb
;
M:
tokyo-remotedb
clear-assoc
handle>>
tcrdbvanish
drop
;
USING:
accessors
assocs
kernel
trees
;
M:
tree
clear-assoc
0
>>count
f
>>root
drop
;
USING:
accessors
assocs
hashtables.wrapped
;
M:
wrapped-hashtable
clear-assoc
underlying>>
clear-assoc
;
inline