You have already seen some examples of closures in previous chapters. The concept of closures is new to most Java developers, and closures might seem a bit foreign when you see them for the first time. By working your way through the examples in this chapter, you will get a much better understanding of closures, how they work, and how to use them efficiently. Closures are important in Groovy; almost any real-life example in Groovy will use closures, and a good understanding of them is essential if you want to get the most out of the language.


Class Variable Annual Salary Functional Programming Previous Chapter Single Argument 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Bashar Abdul-Jawad 2009

Personalised recommendations