/** * Takes two arrays and returns an array of corresponding pairs. If one input * array is short, excess elements of the longer array are discarded * * @tsplus static ImmutableArray.Aspects zip * @tsplus pipeable ImmutableArray zip */ export function zip(that: ImmutableArray) { return (self: ImmutableArray): ImmutableArray => self.zipWith(that, (a, b) => [a, b]) }