title: How can I re-assign a variable in a function in Haskell?
body: <p>I don't know how to re-assign a variable in a function.</p>
  
  <p>For example, </p>
  
  <pre><code>elephant = 0
  
  function x = elephant = x
  </code></pre>
  
  <p>Why doesn't this work?</p>