title: String Template: is it possible to get the n-th element of a Java List in the template?
body: <p>In String Template one can easily get an element of a Java Map within the template.
  Is it possible to get the n-th element of an array in a similar way?</p>
  
  <p>According to the <a href="http://www.antlr.org/wiki/display/ST/StringTemplate+cheat+sheet" rel="nofollow">String Template Cheat Sheet</a> you can easily get the first or second element:</p>
  
  <blockquote>
    <p>You can combine operations to say things like first(rest(names)) to get second element.</p>
  </blockquote>
  
  <p>but it doesn't seem possible to get the n-th element easily. I usually transform my list into a map with list indexes as keys and do something like </p>
  
  <pre><code>map.("25")
  </code></pre>
  
  <p>Is there some easier/more straightforward way?</p>