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

Function uncurriedMagix

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

Source from the content-addressed store, hash-verified

110 r: (a: A) => (b: B) => C
111}
112export function uncurriedMagix<A, B, C>(f: (a: A, b: B) => C) {
113 const curried = curry(f)
114 return Object.assign(curried, {
115 /**
116 * Uncurried version of the parent function
117 */
118 _: f,
119 /**
120 * Reverse curried version of the parent function
121 */
122 r: reverseCurry(curried)
123 })
124}
125
126export function reverseCurriedMagix<A, B, C>(
127 f: (a: A) => (b: B) => C

Callers

nothing calls this directly

Calls 2

curryFunction · 0.85
reverseCurryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…