Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Functional partial applications
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
test
.gitignore
.travis.yml
LICENSE
index.js
package.json
readme.md

readme.md

Fundot Partial

Partial application composer for the functional library Fundot

build status

Example

var partial = require('fundot-partial')

var say = function (name, says) {
  return name + ' says ' + says
}

var chuckSays = partial.left(say, 'Chuck')
console.log(chuckSays('hello'))

var sayHello = partial.right(say, 'hello')
console.log(sayHello('Bob'))
$ node example/partial.js
Chuck says hello
Bob says hello

Methods

var partial = require('fundot-partial')

partial.left(function, arguments)

Composes partial application using the function passed as the first argument. Other arguments given will be stored and placed on the left of any arguments given to the partial application returned.

partial.right(function, arguments)

Composes partial application using the function passed as the first argument. Other arguments given will be stored and placed on the right of any arguments given to the partial application returned.

Install

With npm do:

npm install fundot-partial

License

MIT

Something went wrong with that request. Please try again.