associate ( value key -- hash )
Factor documentation > Factor handbook > The language > Collections > Hashtables > Hashtable utilities
Next:?set-at ( value key assoc/f -- assoc )


Vocabulary
hashtables

Inputs and outputs
valuea value
keya key
hasha new hashtable


Word description
Create a new hashtable holding one key/value pair.

Definition
USING: assocs kernel ;

IN: hashtables

: associate ( value key -- hash )
2 <hashtable> [ set-at ] keep ;