Function: nrepl-dict-map

nrepl-dict-map is a byte-compiled function defined in nrepl-dict.el.

Signature

(nrepl-dict-map FN DICT)

Documentation

Map FN on nREPL DICT.

FN must accept two arguments key and value.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-dict.el
(defun nrepl-dict-map (fn dict)
  "Map FN on nREPL DICT.
FN must accept two arguments key and value."
  (if (nrepl-dict-p dict)
      (mapcar (lambda (pair) (funcall fn (car pair) (cadr pair)))
              (seq-partition (cdr dict) 2))
    (error "Not an nREPL dict object: %s" dict)))