flom
v1.0.0
Published
Flo map.
Downloads
15
Readme
flom
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