...
For more methods you can call with closures as arguments, see the Groovy GDK documentation.
By default closures take 1 parameter called "it", you can also create closures with named parameters. For example the method Map.each() can take a closure with two variables, to which it binds the key and associated value:
...