Replace each element in a list
To replace the elements in-place without building a new list,
you would need to reassign the elements at each index, that is,
essentially zorglubs[i] = zorglubs[i].transform() for each index i in the list.

A perhaps elegant way to do this is using the eachWithIndex function,
which gives you access to each element and its index:

zorglubs.eachWithIndex { it, index -&gt; zorglubs[index] = it.transform() }