effect-io-ai

Package: effect
Module: Stream

Stream.someOrElse

Extracts the optional value, or returns the given ‘default’.

Signature

declare const someOrElse: { <A2>(fallback: LazyArg<A2>): <A, E, R>(self: Stream<Option.Option<A>, E, R>) => Stream<A2 | A, E, R>; <A, E, R, A2>(self: Stream<Option.Option<A>, E, R>, fallback: LazyArg<A2>): Stream<A | A2, E, R>; }

Source

Since v2.0.0