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
valuean object
assocan assoc


Outputs
key/fthe 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


: value-at ( value assoc -- key/f ) value-at* drop ;