/** * Fail with the returned value if the `PartialFunction` matches, otherwise * continue with our held value. * * @tsplus static effect/core/io/Effect.Aspects reject * @tsplus pipeable effect/core/io/Effect reject */ export function reject(pf: (a: A) => Maybe) { return (self: Effect): Effect => self.rejectEffect((a) => pf(a).map(Effect.fail)) }