title: printing elements in list using stream
body: <p>Why does the following code prints only 1 and not the rest of the list elements?</p>
  
  <pre><code>scala&gt; val l: List [Int] = List(1,2,3)
  l: List[Int] = List(1, 2, 3)
  
  
  
  scala&gt; l.toStream.map(x =&gt; print(x))
  1res3: scala.collection.immutable.Stream[Unit] = Stream((), ?)
  </code></pre>
  
  <p>What is the correct way to write this code?</p>