Skip to main content

Michael Scharhag: Closure composition in Groovy

[article]This is a short blog post about a feature of Groovy closures I discovered a few days ago: Closure Composition. With Closure Composition we can chain closure calls within a single closure. Assume we have the following three closures...