Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/Effect-TS/effect
/ onLeft
Function
onLeft
packages/effect/test/Either.test.ts:167–167 ·
view source on GitHub ↗
(s: string)
Source
from the content-addressed store, hash-verified
165
166
it(
"match"
, () => {
167
const
onLeft = (s: string) => `left${s.length}`
168
const
onRight = (s: string) => `right${s.length}`
169
const
match = Either.match({ onLeft, onRight })
170
strictEqual(match(Either.left(
"abc"
)),
"left3"
)
Callers
1
Either.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected