MCPcopy
hub / github.com/Effect-TS/effect / fromEither

Function fromEither

packages/effect/src/Micro.ts:1005–1006  ·  view source on GitHub ↗
(either: Either.Either<R, L>)

Source from the content-addressed store, hash-verified

1003 * @category constructors
1004 */
1005export const fromEither = <R, L>(either: Either.Either<R, L>): Micro<R, L> =>
1006 either._tag === "Right" ? succeed(either.right) : fail(either.left)
1007
1008const void_: Micro<void> = succeed(void 0)
1009export {

Callers

nothing calls this directly

Calls 2

failFunction · 0.70
succeedFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…