title: Case to check when list is empty rather then recursion?
body: <p>Im trying to check with a case if a list is empty rather then recursivly catching the pattern when it is, is this the right way to go in Erlang or am i just walking down the wrong path and pattern matching  is the best way to catch if a list has been emptied or not?</p>
  
  <pre><code>     calculate([Head|Tail], pi, x, y) -&gt;
           ...calculations of Head being sent to a list...
           case Tail == [] of
              false -&gt;
                 calculate(Tail, pi, x, y)
           end.
  </code></pre>
  
  <p>or should i just pattern match on calculate if the list is empty? </p>