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

Function isRight

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

Source from the content-addressed store, hash-verified

74
75/** @internal */
76export const isRight = <R, L>(ma: Either.Either<R, L>): ma is Either.Right<L, R> => ma._tag === "Right"
77
78/** @internal */
79export const left = <L>(left: L): Either.Either<never, L> => {

Callers 4

[Equal.symbol]Function · 0.70
getLeftFunction · 0.70
getEquivalenceFunction · 0.50
Either.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected