es-papp
es-papp copied to clipboard
A proposal for adding partial application support to JavaScript.
Naming
Sorry to add yet another issue about the name, and maybe i've missed something - if I have, I apologise - but as regards to the name, why does it...
This method is pretty much a variant of apply, so it is good to give it a more meaningful name Even more taking into account that - you'll find nothing...
https://rosettacode.org/wiki/Partial_function_application https://clojuredocs.org/clojure.core/partial https://docs.python.org/2/library/functools.html#functools.partial
## Idea A partial application operator, ``. Instead of `fn.papp(foo)`, you would write `fn clamp(0, 1, _)) things.map(clamp.papp(0, 1)) things.map(clamp clamp(0, 1, _), filter( x => x >= 0.5, map(Math.abs,...
Proposal is to have two functions for partial application: `pal` and `par` `pal` will partially apply arguments to the left (will work like `papp`) `par` will partially apply arguments to...