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

Function onSome

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

Source from the content-addressed store, hash-verified

274 it("match", () => {
275 const onNone = () => "none"
276 const onSome = (s: string) => `some${s.length}`
277 const match = Option.match({ onNone, onSome })
278 strictEqual(match(Option.none()), "none")
279 strictEqual(match(Option.some("abc")), "some3")

Callers 1

Option.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected