/** * Returns a computation that effectfully "peeks" at the success of this one. * * @tsplus static Eval.Aspects tap * @tsplus pipeable Eval tap */ export function tap(f: (a: A) => Eval) { return (self: Eval): Eval => self.flatMap((a) => f(a).map(() => a)) }