/** * A schedule that recurs for until the input value becomes applicable to * partial function and then map that value with given function. * * @tsplus static effect/core/io/Schedule.Ops recurUntilMaybe */ export function recurUntilMaybe( pf: (a: A) => Maybe ): Schedule> { return Schedule.identity() .map(pf) .untilOutput((_) => _.isSome()) }