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

Function isLeft

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

Source from the content-addressed store, hash-verified

71
72/** @internal */
73export const isLeft = <R, L>(ma: Either.Either<R, L>): ma is Either.Left<L, R> => ma._tag === "Left"
74
75/** @internal */
76export const isRight = <R, L>(ma: Either.Either<R, L>): ma is Either.Right<L, R> => ma._tag === "Right"

Callers 7

[Equal.symbol]Function · 0.70
getRightFunction · 0.70
getEquivalenceFunction · 0.50
Either.tsFile · 0.50
allFunction · 0.50
flipFunction · 0.50
genFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…