Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//Every closure in groovy is executable, and technically, implements the "Callable" interface
def a = { println "hello!"}
a()
// --> hello
a.call()
// --> hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment