/** * Returns an effect that effectfully "peeks" at the success of this effect. * If the partial function isn't defined at the input, the result is * equivalent to the original effect. * * @tsplus static effect/core/io/Effect.Aspects tapSome * @tsplus pipeable effect/core/io/Effect tapSome */ export function tapSome( pf: (a: A) => Maybe> ) { return (self: Effect): Effect => self.tap((a) => pf(a).getOrElse(Effect.unit)) }