https://github.com/winston0410/uncurry
A package that helps you uncurry curried functions for performance boost.
https://github.com/winston0410/uncurry
javascript purescript uncurry uncurry-curried-functions
Last synced: 8 months ago
JSON representation
A package that helps you uncurry curried functions for performance boost.
- Host: GitHub
- URL: https://github.com/winston0410/uncurry
- Owner: winston0410
- Created: 2020-09-26T07:02:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-07-25T09:23:55.000Z (11 months ago)
- Last Synced: 2025-10-12T20:05:24.016Z (8 months ago)
- Topics: javascript, purescript, uncurry, uncurry-curried-functions
- Language: JavaScript
- Homepage:
- Size: 346 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uncurry
[](https://snyk.io/test/github/winston0410/uncurry?targetFile=package.json) [](https://codeclimate.com/github/winston0410/uncurry/maintainability) [](https://codeclimate.com/github/winston0410/uncurry/test_coverage) [](https://www.codacy.com/manual/winston0410/uncurry/dashboard?utm_source=github.com&utm_medium=referral&utm_content=winston0410/uncurry&utm_campaign=Badge_Grade)
A package that helps you uncurry curried functions for performance boost.
```javascript
//Before transformation
//Curried function
const curriedFn = (param1) => (param2) => param1
//Partial application
const partialApplication = curriedFn('Hello')
```
```javascript
//After transformation
//Curried function
const curriedFn = (param1, param2) => param1
//Partial application
//The partially applied parameter will be reduced from both the head and the body of the function.
const partialApplication = (param2) => 'Hello'
```
## Installation
TODO
## Acknowledgement
This project would not exist without the help from the community of Purescript, and I am especially thankful for the following individuals for their advices.
[hdgarrood](https://github.com/hdgarrood)