Function: hash-lookup

hash-lookup is a byte-compiled function defined in hasht.el.

Signature

(hash-lookup KEY HASH-TABLE)

Documentation

Lookup KEY, a string, in HASH-TABLE and return associated value.

Do nothing and return nil if KEY or HASH-TABLE are of the wrong type. If value is nil, this function does not tell you whether or not KEY is in the hash table. Use hash-key-p instead for that function.

Aliases

hash-get

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hasht.el
(defun hash-lookup (key hash-table)
  "Lookup KEY, a string, in HASH-TABLE and return associated value.
Do nothing and return nil if KEY or HASH-TABLE are of the wrong type.
If value is nil, this function does not tell you whether or not KEY is
in the hash table.  Use `hash-key-p' instead for that function."
  (when (and (hash-table-p hash-table)
	     (stringp key))
    (let ((key-sym (intern-soft key)))
      (gethash key-sym hash-table))))