2 lines
81 B
Groovy
2 lines
81 B
Groovy
def eltChangeFunc = { it * 3 - 1 }
|
|
def changedList = list.collect(eltChangeFunc)
|
def eltChangeFunc = { it * 3 - 1 }
|
|
def changedList = list.collect(eltChangeFunc)
|