title: function literals in scala for expression
body: <p>Hi I am new to scala and have a question. </p>
  
  <p>When I specify the non abbreviated version of a funtion literal in a for loop, scala does nothing with it.</p>
  
  <p>e.g. </p>
  
  <pre><code>    val myList = List("one","two","tree","four","five")
      //compiles but does not print anything
     for (arg &lt;- lst) (arg:String) =&gt; {println(arg)}
  
      //does print one, two, tree, four,five on separated lines
     lst.foreach((arg:String) =&gt; {println(arg)})
  </code></pre>
  
  <p>On the other hand the abbreviated version of the above function literal ( println(arg) ) in a for loop does seem to work as expected: </p>
  
  <pre><code>    val myList = List("one","two","tree","four","five")
      //does print one, two, tree, four,five on separated lines
      for (arg &lt;- lst) println(arg)
  </code></pre>
  
  <p>Is this a bug or did I misunderstand something?
  thanks a lot</p>