Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T07:43:08.000Z (4 months ago)
- Last Synced: 2024-10-12T13:17:18.367Z (3 months ago)
- Topics: javascript, purescript, uncurry, uncurry-curried-functions
- Language: JavaScript
- Homepage:
- Size: 220 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uncurry
[![Known Vulnerabilities](https://snyk.io/test/github/winston0410/uncurry/badge.svg?targetFile=package.json)](https://snyk.io/test/github/winston0410/uncurry?targetFile=package.json) [![Maintainability](https://api.codeclimate.com/v1/badges/8503697bcf569800b298/maintainability)](https://codeclimate.com/github/winston0410/uncurry/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/8503697bcf569800b298/test_coverage)](https://codeclimate.com/github/winston0410/uncurry/test_coverage) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/167e407501e24a79a4f8e43a9c78e470)](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)