0.1.0 • Published 9 years ago

uncurry v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Uncurry

Smart functional programming.

Why Uncurry?

You love that ECMAScript 6 allows you to write curried functions like this:

var add = x => y => z => x + y + z;

However, you hate that you need to parenthesize every argument of a curried function:

add(2)(3)(5);

You want to be able to apply curried functions to multiple arguments at once:

add(2, 3, 5);

What should you do? Uncurry the function:

var $ = require("uncurry");

var add = $(x => y => z => x + y + z);

Think sideways.

0.1.0

9 years ago

1.0.0

9 years ago