zipWith<B, C> method

ZIO<R, E, C> zipWith<B, C>(
  1. ZIO<R, E, B> zio,
  2. C resolve(
    1. A a,
    2. B b
    )
)

Combine the result of this ZIO with the result of the given ZIO, using the given function to determine the result.

Implementation

ZIO<R, E, C> zipWith<B, C>(ZIO<R, E, B> zio, C Function(A a, B b) resolve) =>
    flatMap((a) => zio.map((b) => resolve(a, b)));