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
keyan object
assocan 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