Function: hash-table-contains-p
hash-table-contains-p is a byte-compiled function defined in
subr.el.gz.
Signature
(hash-table-contains-p KEY TABLE)
Documentation
Return non-nil if TABLE has an element with KEY.
Other relevant functions are documented in the hash-table group.
Probably introduced at or before Emacs version 31.1.
Shortdoc
;; hash-table
(hash-table-contains-p 'key table)
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(let ((missing (make-symbol "missing")))
(defsubst hash-table-contains-p (key table)
"Return non-nil if TABLE has an element with KEY."
(declare (side-effect-free t)
(important-return-value t))
(not (eq (gethash key table missing) missing))))