/** * Switches to the provided stream in case this one fails with a typed error. * * See also `Stream.catchAll`. * * @tsplus static effect/core/stream/Stream.Aspects orElseEither * @tsplus pipeable effect/core/stream/Stream orElseEither */ export function orElseEither( that: LazyArg> ) { return (self: Stream): Stream> => self.map(Either.left) | that().map(Either.right) }