set-at ( value key assoc -- )
Factor handbook > The language > Collections > Associative mapping operations > Associative mapping protocol

Prev:>alist ( assoc -- newassoc )
Next:delete-at ( key assoc -- )


Vocabulary
assocs

Inputs and outputs
valuea value
keya key to add
assocan assoc


Generic word contract
Stores the key/value pair into the assoc.

Side effects
Modifies assoc

Definition

GENERIC: set-at ( value key assoc -- )


Methods