/** * Returns the resulting stream when the given partial function is defined * for the given value, otherwise returns an empty stream. * * @tsplus static effect/core/stream/Stream.Ops whenCase */ export function whenCase( a: LazyArg, pf: (a: A) => Maybe> ): Stream { return Stream.whenCaseEffect(Effect.sync(a), pf) }