Skip to content

A package that helps you uncurry curried functions for performance boost.

Notifications You must be signed in to change notification settings

winston0410/uncurry

Repository files navigation

Uncurry

Known Vulnerabilities Maintainability Test Coverage Codacy Badge

A package that helps you uncurry curried functions for performance boost.

//Before transformation

//Curried function
const curriedFn = (param1) => (param2) => param1

//Partial application
const partialApplication = curriedFn('Hello')
//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 <!--

API Reference

options.curriedFunction : Boolean

Set this option to True to uncurry curried functions. Default to True.

options.partialApplication : Boolean

Set this option to True to reduce partial applications. Default to True. -->

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

About

A package that helps you uncurry curried functions for performance boost.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published