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'
TODO <!--
Set this option to True
to uncurry curried functions. Default to True
.
Set this option to True
to reduce partial applications. Default to True
. -->
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.