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

Function either

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

Source from the content-addressed store, hash-verified

2429
2430/** @internal */
2431export const either = <A, E, R>(self: Stream.Stream<A, E, R>): Stream.Stream<Either.Either<A, E>, never, R> =>
2432 pipe(self, map(Either.right), catchAll((error) => make(Either.left(error))))
2433
2434/** @internal */
2435export 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…