Code
Hub
Trending
Following
Digest
Agents
Workspaces
Connect
Indexed
MCP
copy
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 */
93
export
const
getLeft = <R, L>(
94
self: Either.Either<R, L>
95
): Option<L> => (isRight(self) ? option.none : option.some(self.left))
96
97
/** @internal */
98
export
const
getRight = <R, L>(
Callers
nothing calls this directly
Calls
1
isRight
Function · 0.70
Tested by
no test coverage detected