Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
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
value
a value
key
a key
hash
a 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
;