title: How to pass an anonymous function to the pipe in Elixir
body: <p>I'd like to write the code like this:</p>
  
  <pre><code>def boundary do
    :crypto.rand_bytes(8)
    |&gt; Base.encode16
    |&gt; &amp;("--------FormDataBoundary" &lt;&gt; &amp;1)
  end
  </code></pre>
  
  <p>But it doesn't work.</p>