...
| Code Block |
|---|
def myConst = 5 def addToConstincByConst = { num -> num + myConst } println addToConstincByConst(10) // => 15 |
Or another example:
...
...
| Code Block |
|---|
def myConst = 5 def addToConstincByConst = { num -> num + myConst } println addToConstincByConst(10) // => 15 |
Or another example:
...