Curry-this
Curry-this
Curry-this
makes creating curryied function simple and expresive by invoking curry
with the function bind syntax ::
.
Apart from the expresive way of creating a curried function, the main feature are placeholders.
A placeholder (_
) is a Symbol
which allows to curry specific arguments of a function.
Install it: npm install --save curry-this
Basic usage
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Placeholders
1 2 3 4 5 6 7 8 |
|
You can try this with babel-node
. Make sure that you use the --stage=0
option.
GIF FTW!
Thanks to Christoph Hermann and tomekwi for making cury more fun!