Name

interleave

Usage

builtin-function

Syntax

(interleave &rest seqs)

Description

Returns a new list, taking the first items of each seqs, then the second, and so on. Stops when the shortest sequence is exhausted.

user 1 > (interleave '(1 2 3) '(4 5 6 7))
it: (1 4 2 5 3 6)
user 2 > (interleave '(1 2 3) (repeat '-))
it: (1 - 2 - 3 -)