Skip to content

Instantly share code, notes, and snippets.

@yossale
Created March 13, 2014 12:29
Show Gist options
  • Select an option

  • Save yossale/9527529 to your computer and use it in GitHub Desktop.

Select an option

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