/** * Performs the specified effect if this layer succeeds. * * @tsplus static effect/core/io/Layer.Aspects tap * @tsplus pipeable effect/core/io/Layer tap */ export function tap(f: (_: Env) => Effect) { return (self: Layer): Layer => self.flatMap((environment) => Layer.fromEffectEnvironment(f(environment).map(() => environment)) ) }