Vocabulary
hashtables

Inputs
valuean object
keyan object
assoc/fan assoc or f


Outputs
assocan assoc


Word description
If the third input is an assoc, stores the key/value pair into that assoc, or else creates a new hashtable with the key/value pair as its only entry.

Definition


: ?set-at ( value key assoc/f -- assoc )
[ [ set-at ] keep ] [ associate ] if* ;