title: Is it possible to have tuple assignment to variables in Scala?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1624484/tuple-parameter-declaration-and-assignment-oddity">Tuple parameter declaration and assignment oddity</a>  </p>
  </blockquote>
  
  
  
  <p>In Scala, one can do multiple-variable assignment to tuples via:</p>
  
  <pre><code>val (a, b) = (1, 2)
  </code></pre>
  
  <p>But a similar syntax for assignment to variables doesn't appear to work. For example I'd like to do this:</p>
  
  <pre><code>var (c, d) = (3, 4)
  (c, d) = (5, 6)
  </code></pre>
  
  <p>I'd like to reuse <code>c</code> and <code>d</code> in multiple-variable assignment. Is this possible?</p>