title: Basic repetition in scala
body: <p>Based on the first comment in <a href="https://www.scala-lang.org/old/node/3087.html" rel="nofollow noreferrer">this discussion</a>, it seems that Martin Odersky</p>
  
  <ul>
  <li>sees no need for a 'times' method in scala.  </li>
  <li>suggests that <code>for (_ &lt;- 1 to 3) println</code> is acceptable</li>
  </ul>
  
  <p>Has anything changed on this since 2009 or is this still state-of-the-art in scala?</p>
  
  <p>As an extension, does that mean that <code>for (_ &lt;- 1 to 3) yield math.random</code> and/or <code>(1 to 3).map(_ =&gt; math.random)</code> are idiomatic ways of creating List-like objects? </p>