Function: org-roam-plist-map!

org-roam-plist-map! is a natively compiled function defined in org-roam-utils.el.

Signature

(org-roam-plist-map! FN PLIST)

Documentation

Map FN over PLIST, modifying it in-place and returning it.

FN must take two arguments: the key and the value.

Source Code

;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam-utils.el
;;; List utilities
(defun org-roam-plist-map! (fn plist)
  "Map FN over PLIST, modifying it in-place and returning it.
FN must take two arguments: the key and the value."
  (let ((plist-index plist))
    (while plist-index
      (let ((key (pop plist-index)))
        (setf (car plist-index) (funcall fn key (car plist-index))
              plist-index (cdr plist-index)))))
  plist)