title: Can views be used with parallel collections?
body: <p>The idiom for finding a result within a mapping of a collection goes something like this:</p>
  
  <pre><code>list.view.map(f).find(p)
  </code></pre>
  
  <p>where <code>list</code> is a <code>List[A]</code>, <code>f</code> is an <code>A =&gt; B</code>, and <code>p</code> is a <code>B =&gt; Boolean</code>.</p>
  
  <p>Is it possible to use <code>view</code> with parallel collections? I ask because I'm getting some very odd results:</p>
  
  <pre><code>Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0).
  Type in expressions to have them evaluated.
  Type :help for more information.
  
  scala&gt; val f : Int =&gt; Int = i =&gt; {println(i); i + 10}
  f: Int =&gt; Int = &lt;function1&gt;
  
  scala&gt; val list = (1 to 10).toList
  list: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
  
  scala&gt; list.par.view.map(f).find(_ &gt; 5)
  1
  res0: Option[Int] = Some(11)
  
  scala&gt; list.par.view.map(f).find(_ &gt; 5)
  res1: Option[Int] = None
  </code></pre>