Photo by JJ Ying

My boss said I was “ranting” the other day, when I was trying to explain what I see when I see |>, the elixir’s pipelining operator. I guess that’s something as valid as any other thing to share …

Well, that’s very easy, and you know it already. The pipeline operator is a way to express the first argument to a function in a different way:

some_function(arg1, arg2) == arg1 |> some_function(arg2)

Instead of some_function(arg1, arg2) we can write arg1 |> some_function(arg2).

And that’s it! that’s all the pipeline “operator” does. Why do elixir people make such a big deal…

José de Zárate

I'm a Theoretical Physicist who plays rock'n'roll bass and get his money from programming in doofinder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store