simplecurry
v0.0.1
Published
Simple currifying of functions
Downloads
6
Readme
SimpleCurry
Simple currifying of JavaScript functions.
Installation
Via npm on Node:
npm install simplecurry
Usage
Reference in your program:
var _ = require('simplecurry');
var add = _.curry(function (x, y) { return x + y; });
// Apply all arguments
add(1, 2); // 3
// Apply arguments one by one
add(1)(2); // 3
// Partial apply first argument
var add1 = add(1);
add1(2); // 3
To Do
- Adapt to browser
- Partial apply skipping argument using
_
- Test more use cases
Development
git clone git://github.com/ajlopez/SimpleCurry.git
cd SimpleCurry
npm install
npm test
Samples
TBD
References
TBD
Versions
- 0.0.1 Published
License
MIT
Contribution
Feel free to file issues and submit pull requests � contributions are welcome<
If you submit a pull request, please be sure to add or update corresponding
test cases, and ensure that npm test
continues to pass.