1.0.0 • Published 8 years ago
explicit-curry v1.0.0
Simple currying helpers
This is useful when you are writing JavaScript bindings for languages that are curried by default, like purescript. Note that extensive use of currying doesn't go well with performance, so try to use objects instead.
Example (PureScript Binding)
// module Foo
var curry = import('explicit-curry');
exports.someJsFun = curry.F2(function(a, b) {
return a + b;
});
module Foo
foreign import someJsFun :: Number -> Number -> Number
1.0.0
8 years ago