Handbook
Glossary
inc-at ( key assoc -- )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Storing keys and values in assocs
Prev:
at+ ( n key assoc -- )
Vocabulary
assocs
Inputs
key
an
object
assoc
an
assoc
Outputs
None
Word description
Adds 1 to the value associated with
key
; if there is no value, stores 1.
Side effects
Modifies
assoc
Definition
USING:
kernel
;
IN:
assocs
:
inc-at
( key assoc -- )
[
1
]
2dip
at+
;
inline