petersommerhoff
01/18/2018, 11:56 AMtestlist.forEach { it.iDestGroup = 15 } is a statement with value Unit, but after executing it, testlist contains the modifications and you can return testlist. But you cannot directly return the forEach-statement