Function: -zip-lists
-zip-lists is a byte-compiled function defined in dash.el.
Signature
(-zip-lists &rest LISTS)
Documentation
Zip LISTS together.
Group the head of each list, followed by the second element of each list, and so on. The number of returned groupings is equal to the length of the shortest input list, and the length of each grouping is equal to the number of input LISTS.
The return value is always a list of proper lists, in contrast to
-zip which returns a list of dotted pairs when only two input
LISTS are provided.
See also: -zip-pair.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -zip-lists (&rest lists)
"Zip LISTS together.
Group the head of each list, followed by the second element of
each list, and so on. The number of returned groupings is equal
to the length of the shortest input list, and the length of each
grouping is equal to the number of input LISTS.
The return value is always a list of proper lists, in contrast to
`-zip' which returns a list of dotted pairs when only two input
LISTS are provided.
See also: `-zip-pair'."
(declare (pure t) (side-effect-free t))
(when lists
(let (results)
(while (--every it lists)
(push (mapcar #'car lists) results)
(setq lists (mapcar #'cdr lists)))
(nreverse results))))