Re:ES7 Proposal: The Pipeline Operator
by takle on Monday December 07, 2015 @04:12PM
(#10692738)
# Why not
## Lodash
`_.flow(b,c,d)(a)` // left to right
`_.compose(d,c,b)(a)` // right to left
`_.flowRight(d,c,b)(a)` // right to left
`_.backflow(d,c,b)(a)` // right to left
## RamdaJS
`_.pipe(b,c,d)(a)` // left to right
# But why
are we inventing so many ways of doing forward, backward function application and composition.
Aside:
I've never found an application of lodash `_.chain` that couldn't be expressed in a better way.
## RamdaJS `_.pipe(b,c,d)(a)` // left to right
# But why are we inventing so many ways of doing forward, backward function application and composition.
Aside: I've never found an application of lodash `_.chain` that couldn't be expressed in a better way.