title: Get next iterator value in Groovy
body: <p>How can I get the next value of iterator while looping through a collection with Groovy 1.7.4</p>
  
  <pre><code>values.each {it -&gt;
      println(it)
      println(it.next()) //wrong
  }
  </code></pre>