Handbook
Glossary
value-at ( value assoc -- key/f )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Transposed assoc operations
Next:
value-at* ( value assoc -- key/f ? )
Vocabulary
assocs
Inputs
value
an
object
assoc
an
assoc
Outputs
key/f
the key associated to the value or
f
Word description
Looks up the key associated with a value. No distinction is made between a missing key and a key set to
f
.
Definition
USING:
kernel
;
IN:
assocs
:
value-at
( value assoc -- key/f )
value-at*
drop
;