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

Function reverseCurriedMagix

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

Source from the content-addressed store, hash-verified

148 r: (a: A) => (b: B) => C
149}
150export function reverseCurriedMagix<A, B, C>(f: (a: A) => (b: B) => C) {
151 const curried = reverseCurry(f)
152 return Object.assign(curried, {
153 /**
154 * Uncurried version of the parent function
155 */
156 _: uncurry(curried),
157 /**
158 * Reverse curried version of the parent function
159 */
160 r: f
161 })
162}
163
164export function lazy<A>(f: () => A): () => A {
165 let tmp: A | undefined

Callers

nothing calls this directly

Calls 2

reverseCurryFunction · 0.85
uncurryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…