Elixir Alchemists love the pipe (
|>) operator, and with good reason: it enables transformation of data in ways that are very expressive.
These expressive declarations of code – or "pipelines" – can seem like a magic bullet, but let’s look at an example where the pipeline becomes cumbersome and unwieldy. Then we’ll refactor to use the new
with macro introduced in Elixir 1.2, and fall in love
with pipelines again.