This chapter covers
I wouldn’t like to build a tool that could only do what I had been able to imagine for it.
Closures are important. Very important. They’re arguably one of the most useful features of Groovy. But at the same time they can be a strange concept until you fully understand them. To get the best out of Groovy, or to understand anyone else’s Groovy code, you’re going to have to be comfortable with closures. Not just “met them once at a wedding” comfortable, but “invite them over for a barbecue on the weekend” comfortable.
Now, we don’t want to scare you away. Closures ...