Function: -unzip

-unzip is a byte-compiled function defined in dash.el.

Signature

(-unzip LISTS)

Documentation

Unzip LISTS.

This works just like -zip (which see), but takes a list of lists instead of a variable number of arguments, such that

  (-unzip (-zip L1 L2 L3 ...))

is identity (given that the lists are of the same length, and that -zip is not called with two arguments, because of the caveat described in its docstring).

Note in particular that calling -unzip on a list of two lists will return a list of dotted pairs.

Since the return value changes form depending on the number of LISTS, it is generally recommended to use -unzip-lists instead.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -unzip (lists)
  "Unzip LISTS.

This works just like `-zip' (which see), but takes a list of
lists instead of a variable number of arguments, such that

  (-unzip (-zip L1 L2 L3 ...))

is identity (given that the lists are of the same length, and
that `-zip' is not called with two arguments, because of the
caveat described in its docstring).

Note in particular that calling `-unzip' on a list of two lists
will return a list of dotted pairs.

Since the return value changes form depending on the number of
LISTS, it is generally recommended to use `-unzip-lists' instead."
  (declare (pure t) (side-effect-free t))
  (apply #'-zip lists))