0.2.0 • Published 8 years ago

@ramped/curry v0.2.0

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

Ramped curry

Convert a function to allow partial application.

Part of the ramped.js collection for functional programming.

Install

To add as a dependency to a Node.js project:

npm i @ramped/curry --save

Usage

curry = require('@ramped/curry')

add_curry = curry(function (a, b) {
	return a + b
})

add_4 = add_curry(4)

add_4(2)
// 6

Dependencies

None

License

ISC

Further reading

See currying and partial application on Wikipedia.