Function: nrepl-dict-filter
nrepl-dict-filter is a byte-compiled function defined in
nrepl-dict.el.
Signature
(nrepl-dict-filter FUNCTION DICT)
Documentation
Return a new dict of the key-values of DICT accepted by FUNCTION.
FUNCTION should be a function taking two arguments, key and value, that returns non-nil for the key-values to keep.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-dict.el
(defun nrepl-dict-filter (function dict)
"Return a new dict of the key-values of DICT accepted by FUNCTION.
FUNCTION should be a function taking two arguments, key and value, that
returns non-nil for the key-values to keep."
(let ((new-map (nrepl-dict))
(keys (nrepl-dict-keys dict)))
(dolist (key keys)
(let ((val (nrepl-dict-get dict key)))
(when (funcall function key val)
(nrepl-dict-put new-map key val))))
new-map))