Skip to content

KeyFreeQ

Status: Stable

documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

Description

KeyFreeQ[assoc, key]

Gives True if key is absent from assoc (the complement of KeyExistsQ), else False.

Examples (2)

Every input below was run against the current Mathilda build and its output recorded.

Basic examples (2)

In[1]:= KeyExistsQ[<|"a" -> 1|>, "a"]
Out[1]= True

In[2]:= KeyFreeQ[<|"a" -> 1|>, "b"]
Out[2]= True

Implementation notes

Attributes: Protected.

References

See also: KeyExistsQ, KeyMemberQ