/** * Accepts a number of iterables and combines them into an iterable of * tuples of successively consumed input values. * * @remarks * Tuples are formed by merging each value of each input iterable, such * that the first yielded tuple contains the first elements of the given * inputs, the second tuple contains the second elements of the inputs, * etc. * * The number of resulting tuples will be the same as the length of the * shortest input iterable. Given only a single argument, `zip` yields a * sequence of 1-tuples. * * @example * ```ts tangle:../export/zip.ts * import { zip } from "@thi.ng/transducers"; * * console.log( * [...zip([1, 2, 3], [3, 4, 5, 0, 9])] * ); * // [ [ 1, 3 ] [ 2, 4 ] [ 3, 5 ] ] * * console.log( * [...zip([1, 2, 3])] * ); * // [ [ 1 ] [ 2 ] [ 3 ] ] * ``` */ export declare function zip(a: Iterable): IterableIterator<[A]>; export declare function zip(a: Iterable, b: Iterable): IterableIterator<[A, B]>; export declare function zip(a: Iterable, b: Iterable, c: Iterable): IterableIterator<[A, B, C]>; export declare function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable): IterableIterator<[A, B, C, D]>; export declare function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable, e: Iterable): IterableIterator<[A, B, C, D, E]>; export declare function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable, e: Iterable, f: Iterable): IterableIterator<[A, B, C, D, E, F]>; export declare function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable, e: Iterable, f: Iterable, g: Iterable): IterableIterator<[A, B, C, D, E, F, G]>; export declare function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable, e: Iterable, f: Iterable, g: Iterable, h: Iterable): IterableIterator<[A, B, C, D, E, F, G, H]>; //# sourceMappingURL=zip.d.ts.map