Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

explicit-curry

agrafix7MIT1.0.0

Helpers to build curried functions

curry, functional, purescript, elm

readme

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