Function: dash-expand:&hash?

dash-expand:&hash? is a byte-compiled function defined in dash.el.

Signature

(dash-expand:&hash? KEY SOURCE)

Documentation

Generate extracting KEY from SOURCE for &hash? destructuring.

Similar to &hash but check whether the map is not nil.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun dash-expand:&hash? (key source)
  "Generate extracting KEY from SOURCE for &hash? destructuring.
Similar to &hash but check whether the map is not nil."
  (let ((src (make-symbol "src")))
    `(let ((,src ,source))
       (when ,src (gethash ,key ,src)))))