Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yossale
Created March 13, 2014 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yossale/9527529 to your computer and use it in GitHub Desktop.
Save yossale/9527529 to your computer and use it in GitHub Desktop.
//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