UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

13 lines (12 loc) 455 B
import Sequence from "./Sequence"; export declare class Zip { /** * Returns a new sequence consisting of pairs built the elements of both sequences * with the same index. The resulting sequence has the length of the shortest input * sequence. All other elements are discarded. * * @param {Sequence<S>} other * @returns {Sequence<[T , S]>} */ zip<T, S>(this: Sequence<T>, other: Sequence<S>): Sequence<[T, S]>; }