|||
Interleave a sequence of sequences
>>> list(interleave([[1, 2], [3, 4]])) [1, 3, 2, 4]
>>> ''.join(interleave(('ABC', 'XY'))) 'AXBYC'
Both the individual sequences and the sequence of sequences may be infinite
Returns a lazy iterator
<Page contents
>Page contents:
interleave()
Styled using the Piccolo Theme