Flo map.
$ npm install flo-map
import flo-map from 'flo-map'
let wacky = flo-map(wackify)
wacky(function * () {
yield 'happy' // => 'wacky happy'
yield ['dog', 'cat'] // => ['wacky dog', 'wacky cat']
})
function wackify (str) {
return 'wacky ' + str
}
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
MIT