3 ms·
You mean what we have already been doing for decades with head, tail, cat, cut, grep, sort, uniq and awk (or inline perl)? Only problem is that it doesn't valid
by visarga 12y ago
You mean what we have already been doing for decades with head, tail, cat, cut, grep, sort, uniq and awk (or inline perl)? Only problem is that it doesn't validate types and has a weak error system.
After learning about functional programming, I was amazed how advanced is unix the command line. The level of composability is famous. To think that the common unix pipe is related to FP, blows my mind ...
Another place where this pattern is widely used is in jQuery, where the pipe is much smarter. Also, see Lazy.js for pipe-like lazy data processing.