Interleave - Maple Help

ListTools

 Interleave
 interleave a number of lists

 Calling Sequence Interleave(L1, L2,...)

Parameters

 L1, L2, ... - lists

Description

 • The Interleave(L1, L2, ...) function interleaves the elements of the specified lists.
 • The number of elements in each list must be less than or equal to that of the preceding list. The first list can have at most one more operand than the last.

Examples

 > $\mathrm{with}\left(\mathrm{ListTools}\right):$
 > $\mathrm{Interleave}\left(\left[1,2,3\right],\left[a,b,c\right],\left[A,B,C\right]\right)$
 $\left[{1}{,}{a}{,}{A}{,}{2}{,}{b}{,}{B}{,}{3}{,}{c}{,}{C}\right]$ (1)
 > $\mathrm{Interleave}\left(\left[1,2,3\right],\left[a,b\right],\left[A,B\right]\right)$
 $\left[{1}{,}{a}{,}{A}{,}{2}{,}{b}{,}{B}{,}{3}\right]$ (2)