The pipe operator appears in many languages (F#, Haskell, Elixir, Clojure
(threading macro)). It's an elegant way of chaining method/function calls in
the presence of additional parameters. The reddit example could be written
using a pipe operator |> 

 #('apple' 'peach' 'banana') 
        |> groupedBy: #size
        |> select: [:each | each size even]
        |> values
        |> collect: #asCommaString.

/Garth




--
View this message in context: 
http://forum.world.st/Pipe-operator-tp4762106p4762182.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to