Function: treemacs--maphash

treemacs--maphash is a macro defined in treemacs-macros.el.

Signature

(treemacs--maphash TABLE NAMES &rest BODY)

Documentation

Iterate over entries of TABLE with NAMES in BODY.

Entry variables will bound based on NAMES which is a list of two elements.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-macros.el
(defmacro treemacs--maphash (table names &rest body)
  "Iterate over entries of TABLE with NAMES in BODY.
Entry variables will bound based on NAMES which is a list of two elements."
  (declare (debug (sexp sexp body))
           (indent 2))
  (let ((key-name (car names))
        (val-name (cadr names)))
    `(maphash
      (lambda (,key-name ,val-name) ,@body)
      ,table)))