title: Is there a Scala equivalent for the python enumerate?
body: <p>I'd like the convienience of </p>
  
  <pre><code>for i, line in enumerate(open(sys.argv[1])):
    print i, line
  </code></pre>
  
  <p>when doing the following in Scala</p>
  
  <pre><code>for (line &lt;- Source.fromFile(args(0)).getLines()) {
    println(line)
  }
  </code></pre>