at* ( key assoc -- value/f ? )
Factor handbook > The language > Collections > Associative mapping operations > Associative mapping protocol

Prev:assoc? ( object -- ? )
Next:assoc-size ( assoc -- n )


Inputs and outputs
keyan object to look up in the assoc
assocan assoc
value/fthe value associated to the key, or f if the key is not present in the assoc
?a boolean indicating if the key was present

Generic word contract
Looks up the value associated with a key. The boolean flag can decide between the case of a missing value, and a value of f.

See also
at, key?, ?at, of, ?of


GENERIC: at* ( key assoc -- value/f ? )