/** * Zips `Either` and `Either` into `Either>`. * * @tsplus pipeable-operator Either + * @tsplus static Either.Aspects zip * @tsplus pipeable Either zip */ export function zip(that: Either) { return (self: Either): Either => self.flatMap( (a) => that.map((b) => [a, b]) ) }