Practically Groovy, Reaching for each

Taking a "least surprise" approach to iteration

From the developerWorks archives

Scott Davis

Date archived: April 19, 2017 | First published: April 14, 2009

In this Practically Groovy installment, Scott Davis provides a dizzying array of ways to iterate through ... arrays. And lists. And files. And URLs. And on and on and on. The most impressive part is that Groovy provides a consistent mechanism for walking through all of those collections and more.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java development
ArticleID=381655
ArticleTitle=Practically Groovy: Reaching for each
publish-date=04142009