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

Function add

packages/effect/test/Function.test.ts:194–194  ·  view source on GitHub ↗
(a: number, b: number)

Source from the content-addressed store, hash-verified

192 describe("tupled", () => {
193 it("converts a multi-arg function to accept a tuple", () => {
194 const add = (a: number, b: number) => a + b
195 const addTupled = F.tupled(add)
196 assert.strictEqual(addTupled([1, 2]), 3)
197 })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected