https://github.com/agrafix/npm-explicit-curry
Helpers to build curried functions
https://github.com/agrafix/npm-explicit-curry
Last synced: 25 days ago
JSON representation
Helpers to build curried functions
- Host: GitHub
- URL: https://github.com/agrafix/npm-explicit-curry
- Owner: agrafix
- Created: 2016-02-25T20:13:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T20:20:30.000Z (over 10 years ago)
- Last Synced: 2025-07-25T10:19:38.064Z (11 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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)
```javascript
// module Foo
var curry = import('explicit-curry');
exports.someJsFun = curry.F2(function(a, b) {
return a + b;
});
```
```purescript
module Foo
foreign import someJsFun :: Number -> Number -> Number
```