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

Prev:delete-at* ( key assoc -- value/f ? )
Next:change-at ( ..a key assoc quot: ( ..a value -- ..b newvalue ) -- ..b )


Vocabulary
assocs

Inputs
newkeyan object
keyan object
assocan assoc


Outputs
None

Word description
Removes the values associated to key and re-adds it as newkey. Does nothing if the assoc does not contain key.

Definition