2.1.0 • Published 3 years ago

uncurrify v2.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Uncurrify License NPM version Dependency Status Build Status

Takes a function f(x) that returns another function g(y) as a result, and yields a new function f′(x, y) that takes a number of additional parameters and applies them to the function returned by function f.

Install

npm i uncurrify --save

How to use?

const uncurrify = require('uncurrify');

const g = (x) => (y) => sum(x + y);
const f = (x) => g(x);
const sum = (x, y) => x + y;

ununcurrify(f)(2, 2);
// returns
4;

License

MIT

2.1.0

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

9 years ago

1.0.0

9 years ago