Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Functional partial applications

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 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.