curryable
decorate a function so it will curry if not given enough arguments. See why curry helps for a good explanation of the concept.
Installation
$ {package mananger} install jkroso/curryable
then in your app:
var curryable =
API
curryable(fn:function, [arity]:Number)
make fn
curryable
var add = var add1 = == == 2 // => true
The optional arity
argument allows you to specify how many arguments are optional
var add = 2 == 2 0 // => true
Running the tests
Just run make
. It will install and start a development server leaving the tests waiting for you at