Returns an AsyncStream that merges elements from both iterables by taking one element from each, passing them to the function, and yielding the result.
Type of items in the first iterable.
Type of items in the second iterable.
Type of items in the result.
First iterable to zip.
Second iterable to zip.
Function to merge elements from both iterables.
AsyncStream that yields elements of the zipped iterables.
const result = zipAsync<number, number, number>([1, 2, 3], [4, 5, 6], (a, b) => a + b);console.log(result); // [5, 7, 9] Copy
const result = zipAsync<number, number, number>([1, 2, 3], [4, 5, 6], (a, b) => a + b);console.log(result); // [5, 7, 9]
Returns an AsyncStream that merges elements from both iterables by taking one element from each, passing them to the function, and yielding the result.