/** * Like chain but ignores the constructed outout. * * @tsplus static Maybe.Aspects tap * @tsplus pipeable Maybe tap */ export function tap(f: (a: A) => Maybe) { return (self: Maybe): Maybe => self.flatMap((a) => f(a).map(() => a)) }