Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
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 */
98
export
const
getRight = <R, L>(
99
self: Either.Either<R, L>
100
): Option<R> => (isLeft(self) ? option.none : option.some(self.right))
101
102
/** @internal */
103
export
const
fromOption: {
Callers
nothing calls this directly
Calls
1
isLeft
Function · 0.70
Tested by
no test coverage detected