MCPcopy Create free account
hub / github.com/Effect-TS/effect / either

Function either

packages/effect/src/internal/stream.ts:2424–2425  ·  view source on GitHub ↗
(self: Stream.Stream<A, E, R>)

Source from the content-addressed store, hash-verified

2422
2423/** @internal */
2424export const either = <A, E, R>(self: Stream.Stream<A, E, R>): Stream.Stream<Either.Either<A, E>, never, R> =>
2425 pipe(self, map(Either.right), catchAll((error) => make(Either.left(error))))
2426
2427/** @internal */
2428export const empty: Stream.Stream<never> = new StreamImpl(core.void)

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
makeFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected