title: Syntax when pattern matching with tuples (Elixir)
body: <p>I'm following a tutorial and there's a basic syntax issue that I'm not sure about. </p>
  
  <p>Sometimes when we are pattern matching (in say function arguments), we use <code>=</code> and match the left to the right.</p>
  
  <p>However, at times I see <code>-&gt;</code> being used instead of <code>=</code>. For example this code:</p>
  
  <p><code>receive do {:result, filename} -&gt; filename do</code></p>
  
  <p>I'm assuming this is wrong:</p>
  
  <p><code>receive do {:result, filename} = filename do</code></p>
  
  <p>Does this have to do with an anonymous function? Or maybe a special syntax for tuples(which are basically maps?).</p>