title: Making a list deconstruct like a tuple, or make a tuple iterate like a list, in scala
body: <p>I've got some variables, and I want to create new variables by running each of them through a function.  So essentially I've currently got</p>
  
  <pre><code>val formatted1 = format(raw1)
  val formatted2 = format(raw2)
  val formatted3 = format(raw3)
  </code></pre>
  
  <p>Is there any way to do this all in one line?  Looking for something like</p>
  
  <pre><code>val (formatted1, formatted2, formatted3) = (raw1, raw2, raw3).map(format)
  </code></pre>
  
  <p>but that seems to combine features of a List and features of a Tuple in incompatible ways.</p>