jw
01/23/2019, 4:34 PMMike
01/23/2019, 5:11 PMjw
01/23/2019, 5:20 PMMike
01/23/2019, 6:16 PMzokipirlo
01/24/2019, 8:08 AMval updated: List<Int> = list.toMutableList().also { it[0] = 99 }
I think it's more explicit like that, so it's more obvious what you are doing with list and is also possible to do multiple changes.jw
01/24/2019, 2:46 PM