Function: parseclj-alist-merge

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

Signature

(parseclj-alist-merge L1 L2)

Documentation

Merge the association lists L1 and L2.

Source Code

;; Defined in ~/.emacs.d/elpa/parseclj-20261002.1230/parseclj-alist.el
(defun parseclj-alist-merge (l1 l2)
  "Merge the association lists L1 and L2."
  ;; Emacs 27: (map-merge 'alist l1 l2)
  (let ((keys (delete-dups (append (mapcar #'car l1) (mapcar #'car l2))))
        (res '()))
    (mapc
     (lambda (key)
       (push (or (assoc key l2)
                 (assoc key l1))
             res))
     keys)
    (nreverse res)))