def eltChangeFunc = { it * 3 - 1 } def changedList = list.collect(eltChangeFunc)