Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
def myConst = 5
def addToConstincByConst = { num -> num + myConst }
println addToConstincByConst(10) // => 15

Or another example:

...