MCPcopy Create free account
hub / github.com/effect-app/libs / curry

Function curry

packages/effect-app/src/Function.ts:21–23  ·  view source on GitHub ↗
(f: (a: A, b: B) => C)

Source from the content-addressed store, hash-verified

19}
20
21export function curry<A, B, C>(f: (a: A, b: B) => C) {
22 return (b: B) => (a: A) => f(a, b)
23}
24
25export function uncurry<A, B, C>(f: (b: B) => (a: A) => C) {
26 return (a: A, b: B) => f(b)(a)

Callers 2

tupleTap_Function · 0.90
uncurriedMagixFunction · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…