1.0.0 • Published 8 years ago

flom v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

flom

Build status Git tag NPM version Code style

Flo map.

Installation

$ npm install flom

Usage

import flom from 'flom'

let wacky = flom(wackify)

wacky(function * () {
  yield 'happy' // => 'wacky happy'
  yield ['dog', 'cat'] // => ['wacky dog', 'wacky cat']
})

function wackify (str) {
  return 'wacky ' + str
}

API

flom(..fns)

  • fns - functions to perform left to right composition over - composition is past "non-floables"

Returns: a unary function that takes an action - action can be "floable" or action to be processed by composition

License

MIT

1.0.0

8 years ago