infinite-curry
npm install infinite-curry
What does it do?
Transform a function with 2 arguments to a function infinitely curryied.
Call the function with no argument to get the final value.
; const sum = ;75; // returns 15 const mult = ;222; // returns 16 const reverse = ;'l''o''w'; // returns "wolf" // with Array.reduce()const apply = ;2 2 2; // returns 62 2 2; // returns 8
How?
const infiniteCurry = { const curry = b === undefined ? a : ; return curry;};
Why would I do that?
I have no idea, I think this is mostly useless.