Function: cl-pairlis
cl-pairlis is a byte-compiled function defined in cl-lib.el.gz.
Signature
(cl-pairlis KEYS VALUES &optional ALIST)
Documentation
Make an alist from KEYS and VALUES.
Return a new alist composed by associating KEYS to corresponding VALUES; the process stops as soon as KEYS or VALUES run out. If ALIST is non-nil, the new pairs are prepended to it.
Aliases
pairlis (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-lib.el.gz
(defun cl-pairlis (keys values &optional alist)
"Make an alist from KEYS and VALUES.
Return a new alist composed by associating KEYS to corresponding VALUES;
the process stops as soon as KEYS or VALUES run out.
If ALIST is non-nil, the new pairs are prepended to it."
(declare (side-effect-free t))
(nconc (cl-mapcar 'cons keys values) alist))