currify

4.0.0 • Public • Published

Currify License NPM version Dependency Status Build Status

Translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.

Install

npm i currify --save

How to use?

const currify = require('currify');
 
const mean = (a, b, c) => (+ b) / c;
const mean1 = currify(mean, 1);
const mean2 = mean1(2);
 
mean2(2);
// returns
1.5

Related

  • fullstore - functional variables.

  • zames - converts callback-based functions to Promises and apply currying to arguments

  • wraptile - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.

License

MIT

Package Sidebar

Install

npm i currify

Weekly Downloads

46,320

Version

4.0.0

License

MIT

Unpacked Size

6.42 kB

Total Files

5

Last publish

Collaborators

  • coderaiser