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

Function f

packages/effect/test/UndefinedOr.test.ts:7–7  ·  view source on GitHub ↗
(a: number)

Source from the content-addressed store, hash-verified

5describe("UndefinedOr", () => {
6 it("map", () => {
7 const f = (a: number) => a + 1
8 strictEqual(UndefinedOr.map(f)(1), 2)
9 strictEqual(UndefinedOr.map(1, f), 2)
10 strictEqual(UndefinedOr.map(f)(undefined), undefined)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected