/** * Runs an effect when the supplied partial function matches for the given * value, otherwise does nothing. * * @tsplus static effect/core/io/Effect.Ops whenCaseEffect */ export function whenCaseEffect( effect: Effect, pf: (a: A) => Maybe> ): Effect> { return effect.flatMap((a) => Effect.whenCase(a, pf)) }