Created
June 17, 2015 14:08
-
-
Save andersonleite/79cca974309e27fe2c07 to your computer and use it in GitHub Desktop.
gradle
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
def myVar = {String str, int num -> println "$str : $num" } | |
//execute closure | |
myVar('age', 30) | |
#output: age : 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment