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)
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…
I'm a Theoretical Physicist who plays rock'n'roll bass and get his money from programming in doofinder