concept declaration in category groovy
appears as: declaration, declaration, declarations, The declaration

This is an excerpt from Manning's book Groovy in Action, Second Edition.
Ranges are specified using the double-dot range operator (..) between the left and right bounds. This operator has a low precedence, so you often need to enclose the declaration in parentheses. Ranges can also be declared using their respective constructors.
It’s evident that the closure that’s passed into the times method can access variable x, which is locally accessible when the closure is declared. Remember: the braces show the declaration time of the closure, not the execution time. The closure can access x for both reading and writing[10] at declaration time.