Groovy: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
{{External|http://groovy-lang.org/closures.html}} | {{External|http://groovy-lang.org/closures.html}} | ||
==Implicit Paramenter== | |||
When a closure does not explicitly define a parameter using the '->' syntax, the closure '''always'' defines an implicit parameter named "it". | |||
=Organizatorium= | =Organizatorium= |
Revision as of 17:25, 21 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.
Working with Closures
Implicit Paramenter
When a closure does not explicitly define a parameter using the '->' syntax, the closure 'always defines an implicit parameter named "it".
Organizatorium
Groovy has both double-quoted and single-quoted String literals. The main difference is that double-quoted String literals support String interpolation:
def x = 10
println "result is $x" // prints: result is 10