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

Function onRight

packages/effect/test/Either.test.ts:168–168  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

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")
171 strictEqual(match(Either.right("abc")), "right3")

Callers 1

Either.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected