key? ( key assoc -- ? )
Factor handbook > The language > Collections > Associative mapping operations > Lookup and querying of assocs

Next:at ( key assoc -- value/f )


Vocabulary
assocs

Inputs and outputs
keyan object
assocan assoc
?a boolean


Word description
Tests if an assoc contains a key.

See also
at, at*, ?at, of, ?of

Definition


: key? ( key assoc -- ? ) at* nip ; inline