tap<X> method

ZIO<R, E, A> tap<X>(
  1. ZIO<R, E, X> f(
    1. A _
    )
)

Like flatMap, but the result of the resulting ZIO is discarded.

Implementation

ZIO<R, E, A> tap<X>(
  ZIO<R, E, X> Function(A _) f,
) =>
    flatMap((a) => f(a).as(a));