Created
April 7, 2021 12:23
-
-
Save theopendle/558086828cefe21ed9fef4e5b672b75b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add a closure (that takes a name argument) to the binding as a variable | |
binding.hello = { name -> | |
println "Hello " + name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment