Feature request for pipeline operator in Ruby:
https://bugs.ruby-lang.org/issues/15799
See also:
https://mamememo.blogspot.com/2019/06/a-brief-history-of-pip...
See also:
https://mamememo.blogspot.com/2019/06/a-brief-history-of-pip...
``` 1.. |> take 10 |> map {|e| e2} |> (x) ```
which is equivalent to
``` (1...).take(10).map{|e| e2} ```
So in order to use it you still need extensions on every single object. The only reason that looks nice is because in this example you continuously call methods on lists that return a list. You can't add `my_custom_list_operation(list_input)` in between.
Going forward, the pipe operator is going to be showing up in many new languages. I've used elixir a lot, and the pipe operator is a genius piece of syntactic sugar.