Function: eca-assoc

eca-assoc is a natively compiled function defined in eca-util.el.

Signature

(eca-assoc MAP KEY VAL)

Documentation

Return a new MAP with KEY associated to flat plist VAL, replacing any existing.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-util.el
(defun eca-assoc (map key val)
  "Return a new MAP with KEY associated to flat plist VAL, replacing any existing."
  (cons (cons key val)
        (cl-remove-if (lambda (pair) (equal (car pair) key)) map)))