title: Iterable with two elements?
body: <p>We have <code>Option</code> which is an <code>Iterable</code> over 0 or 1 elements. </p>
  
  <p>I would like to have such a thing with two elements. The best I have is </p>
  
  <p><code>Array(foo, bar).map{...}</code>, while what I would like is:</p>
  
  <pre><code>(foo, bar).map{...}
  </code></pre>
  
  <p>(such that Scala recognized there are two elements in the <code>Iterable</code>).</p>
  
  <p>Does such a construction exist in the standard library?</p>
  
  <p>EDIT: another solution is to create a <code>map</code> method:</p>
  
  <pre><code>def map(a:Foo) = {...}
  
  val (mappedFoo, mappedBar) = (map(foo), map(bar))
  </code></pre>