Function: parseclj-alist-update

parseclj-alist-update is a byte-compiled function defined in parseclj-alist.el.

Signature

(parseclj-alist-update COLL KEY FN &rest ARGS)

Documentation

In collection COLL, at location KEY, apply FN with extra args ARGS.

"Updates" a value in an associative collection COLL, where KEY is
a key and FN is a function that will take the old value and any supplied args and return the new value, and returns a new structure. If the key does not exist, nil is passed as the old value.

Source Code

;; Defined in ~/.emacs.d/elpa/parseclj-20261002.1230/parseclj-alist.el
(defun parseclj-alist-update (coll key fn &rest args)
  "In collection COLL, at location KEY, apply FN with extra args ARGS.
\"Updates\" a value in an associative collection COLL, where KEY is
a key and FN is a function that will take the old value and any
supplied args and return the new value, and returns a new
structure.  If the key does not exist, nil is passed as the old
value."
  (parseclj-alist-assoc coll
                        key
                        (apply #'funcall fn (map-elt coll key) args)))