title: In Scala, what does "view" do?
body: <p>Specifically I'm looking at Problem 1 here</p>
  
  <p><a href="http://pavelfatin.com/scala-for-project-euler/">http://pavelfatin.com/scala-for-project-euler/</a></p>
  
  <p>The code as listed is as follows</p>
  
  <pre><code>val r = (1 until 1000).view.filter(n =&gt; n % 3 == 0 || n % 5 == 0).sum
  </code></pre>
  
  <p>I can follow everything except for "view".  In fact if I take out view the code still compiles and produces exactly the same answer.</p>