MCPcopy Create free account
hub / github.com/Effect-TS/effect / g

Function g

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

Source from the content-addressed store, hash-verified

221 it("flatMap", () => {
222 const f = (n: number) => Option.some(n * 2)
223 const g = () => Option.none()
224 assertSome(pipe(Option.some(1), Option.flatMap(f)), 2)
225 assertNone(pipe(Option.none(), Option.flatMap(f)))
226 assertNone(pipe(Option.some(1), Option.flatMap(g)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected