map<B> method

ZIO<R, E, B> map<B>(
  1. B f(
    1. A _
    )
)

Transform the success value of this ZIO using the given function.

Implementation

ZIO<R, E, B> map<B>(
  B Function(A _) f,
) =>
    ZIO.from((ctx) => unsafeRun(ctx).then((ea) => ea.map(f)));