0.1.1 • Published 12 years ago

curryable v0.1.1

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

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

With component, packin or npm

$ {package mananger} install jkroso/curryable

then in your app:

var curryable = require('curryable')

API

curryable(fn:function)

make fn curryable

var add = curryable(function(a, b){
	return a + b
})
var add1 = add(1)
add1(1) == add(1, 1) == 2 // => true

Running the tests

Just run make. It will install and start a development server leaving the tests waiting for you at