functional-compose

0.1.1 • Public • Published

Functional Compose

A function for performing functional composition. There are grab bag libraries that have this functionality. But no library present at the time of creation that only provided functional composition

Example

var compose = require("functional-compose");
var words   = function(text)  { return text.split(" "); };
var unwords = function(words) { return lines.join(" "); };
var reverse = function(words) { return lines.reverse();  };
 
var reverseSentence = compose(unwords, reverse, words);
 
console.log("yo dog, i heard you like functional composition");

Readme

Keywords

none

Package Sidebar

Install

npm i functional-compose

Weekly Downloads

3

Version

0.1.1

License

none

Last publish

Collaborators

  • josephmoniz