effect-io-ai

Package: effect
Module: Stream

Stream.whenCase

Returns the resulting stream when the given PartialFunction is defined for the given value, otherwise returns an empty stream.

Signature

declare const whenCase: <A, A2, E, R>(evaluate: LazyArg<A>, pf: (a: A) => Option.Option<Stream<A2, E, R>>) => Stream<A2, E, R>

Source

Since v2.0.0