Groovy: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
When a closure does not explicitly define a parameter using the '->' syntax, the closure '''always'' defines an implicit parameter named "it". | When a closure does not explicitly define a parameter using the '->' syntax, the closure '''always'' defines an implicit parameter named "it". | ||
Revision as of 00:34, 22 May 2018
TODO
TODO Groovy basics: https://docs.gradle.org/current/userguide/writing_build_scripts.html#groovy-dsl-basics
String Programming
TODO next time I need it.
Single-Quoted vs. Double-Quoted Strings
Working with Closures
Defining a Closure
def myClosure = { e -> println "Clicked on $e.source" }
Implicit Paramenter
When a closure does not explicitly define a parameter using the '->' syntax, the closure 'always defines an implicit parameter named "it".