Interweaves two sequences.
The source iterable.
The sequence to interweave to the first sequence.
An IEnumerable that contains the interweaved elements of the two input sequences.
const numbers = [1, 2];const moreNumbers = interweave(numbers, [3, 4, 5]); // [1, 3, 2, 4, 5] Copy
const numbers = [1, 2];const moreNumbers = interweave(numbers, [3, 4, 5]); // [1, 3, 2, 4, 5]
TSource The type of the source iterable.
Interweaves multiple sequences.
The sequences to interweave to the first sequence.
An IEnumerable that contains the interweaved elements of the two or more input sequences.
const numbers = [1, 2];const evenMoreNumbers = interweave(numbers, [3, 4], [5, 6]); // [1, 3, 5, 2, 4, 6] Copy
const numbers = [1, 2];const evenMoreNumbers = interweave(numbers, [3, 4], [5, 6]); // [1, 3, 5, 2, 4, 6]
Interweaves two sequences.