A variant of tap, where the current environment is passed to the function.
ZIO<R, E, A> tapEnv<X>( ZIO<R, E, X> Function(A _, R env) f, ) => flatMapEnv((a, env) => f(a, env).as(a));