Function: -interleave

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

Signature

(-interleave &rest LISTS)

Documentation

Return a new list of the first item in each list, then the second etc.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -interleave (&rest lists)
  "Return a new list of the first item in each list, then the second etc."
  (declare (side-effect-free t))
  (when lists
    (let (result)
      (while (-none? 'null lists)
        (--each lists (!cons (car it) result))
        (setq lists (-map 'cdr lists)))
      (nreverse result))))