The source iterable.
The sequence to interweave to the first sequence.
Interweaves multiple sequences.
const numbers = [1, 2];
const evenMoreNumbers = interweave(numbers, [3, 4], [5, 6]); // [1, 3, 5, 2, 4, 6]
TSource The type of the source iterable.
An IEnumerable
The source iterable.
Rest
...collections: Iterable<TSource>[]The sequences to interweave to the first sequence.
Generated using TypeDoc
Interweaves two sequences.
Example
Typeparam
TSource The type of the source iterable.
Returns
An IEnumerable that contains the interweaved elements of the two input sequences.