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