Getting Started with Elixir - Pipe Operator

In the last section we covered Elixir Control Flow expressions. Here we're going to discuss how using the Pipe Operator can improve code readability and simplify complex data transformations in Elixir functions.

Elixir is a functional programming language and a large part of the philosophy is defining small and concise functions.

The pipe operator (|>) takes the return value from the expression on its left-hand side and passes it as the first argument to the function call on its right-hand side, similar to the | operator in Unix.

Elixir Series

Connect

I hope you're finding this series helpful. If you find any issues or have any feedback feel free to hit me up on twitter: @tmartin8080 || @phxroad or subscribe to the mailing list to receive occasional updates.