amadeu01
01/23/2019, 4:31 PMlist
like data classes
and then change one of its elements? Something like
var list = List<MyObj>
list = list.copy(element = myObj(), index = 3)
hudsonb
01/23/2019, 4:35 PMlist.toMutableList().apply {
set(3, myObj())
}