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

Function getRight

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

Source from the content-addressed store, hash-verified

96
97/** @internal */
98export const getRight = <R, L>(
99 self: Either.Either<R, L>
100): Option<R> => (isLeft(self) ? option.none : option.some(self.right))
101
102/** @internal */
103export const fromOption: {

Callers

nothing calls this directly

Calls 1

isLeftFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…