Re:The shok command shell
by xiaq on Sunday December 29, 2013 @07:13AM
(#6979343)
Though it's mostly a matter of taste, I find pipelines simpler and more natural than method calls. Compare:
with
(Suppose filter and map are implemented such that they accept input either on the command line or from pipeline.)
[ Parent
| on HN ]
Well, lets try Haskell syntax
map f $ filter p xs
what, don't like the reverse order? That's fixable.
If we define # as reverse function application, it's xs # filter p # map f
or filter p xs # map f
which is quite similar to what you are looking for.