Function: -zip-pair
-zip-pair is a byte-compiled function defined in dash.el.
Signature
(-zip-pair LIST1 LIST2)
Documentation
Zip LIST1 and LIST2 together.
Make a pair with the head of each list, followed by a pair with the second element of each list, and so on. The number of pairs returned is equal to the length of the shorter input list.
See also: -zip-lists.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -zip-pair (&rest lists)
"Zip LIST1 and LIST2 together.
Make a pair with the head of each list, followed by a pair with
the second element of each list, and so on. The number of pairs
returned is equal to the length of the shorter input list.
See also: `-zip-lists'."
(declare (advertised-calling-convention (list1 list2) "2.20.0")
(pure t) (side-effect-free t))
(if (dash--length= lists 2)
(--zip-with (cons it other) (car lists) (cadr lists))
(apply #'-zip-lists lists)))