Pipelining Your Functions

Learn how to use Elixir's pipe operator to combine functions.

Elixir has the famous pipe operator used for combining functions to achieve a greater goal. It has a helpful syntax to execute many functions in sequence, and it’s easy to read and understand. Other functional languages have a higher-order function that can compose functions. Elixir doesn’t have a built-in function or an operator for function composition, but we can create it by using the pipe operator to combine two functions.

Get hands-on with 1200+ tech skills courses.