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


Outputs
?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