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

Function first

packages/effect/test/Function.test.ts:202–202  ·  view source on GitHub ↗
(tuple: [number, string])

Source from the content-addressed store, hash-verified

200 describe("untupled", () => {
201 it("converts a tuple-accepting function to multi-arg", () => {
202 const first = (tuple: [number, string]) => tuple[0]
203 const firstUntupled = F.untupled(first)
204 assert.strictEqual(firstUntupled(1, "a"), 1)
205 })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected