at+ ( n key assoc -- )
Factor handbook » The language » Collections » Associative mapping operations » Storing keys and values in assocs

Prev:change-at ( ..a key assoc quot: ( ..a value -- ..b newvalue ) -- ..b )
Next:inc-at ( key assoc -- )


Vocabulary
assocs

Inputs
na number
keyan object
assocan assoc


Outputs
None

Word description
Adds n to the value associated with key; if there is no value, stores n, thus behaving as if the value was 0.

Side effects
Modifies assoc

Definition