MCPcopy Index your code
hub / github.com/Effect-TS/effect / getLeft

Function getLeft

packages/effect/src/internal/either.ts:93–95  ·  view source on GitHub ↗
(
  self: Either.Either<R, L>
)

Source from the content-addressed store, hash-verified

91
92/** @internal */
93export const getLeft = <R, L>(
94 self: Either.Either<R, L>
95): Option<L> => (isRight(self) ? option.none : option.some(self.left))
96
97/** @internal */
98export const getRight = <R, L>(

Callers

nothing calls this directly

Calls 1

isRightFunction · 0.70

Tested by

no test coverage detected