title: Getting the index of the current loop in Play! 2 Scala template
body: <p>In Play! 1, it was possible to get the current index inside a loop, with the following code:</p>
  
  <pre><code>#{list items:myItems, as: 'item'}
      &lt;li&gt;Item ${item_index} is ${item}&lt;/li&gt;
  #{/list}
  </code></pre>
  
  <p>Is there an equivalent in Play2, to do something like that?</p>
  
  <pre><code>@for(item &lt;- myItems) {
      &lt;li&gt;Item ??? is @item&lt;/li&gt;
  }
  </code></pre>
  
  <p>Same question for the <code>_isLast</code> and <code>_isFirst</code>.</p>
  
  <p>ps: <a href="https://stackoverflow.com/questions/12251504/play2-template-incrementing">this question</a> is quite similar, but the solution implied to modify the code to return a <code>Tuple (item, index)</code> instead of just a list of <code>item</code>.</p>