hi guys, is it possible to make "copy" of `list` l...
# announcements
a
hi guys, is it possible to make "copy" of
list
like
data classes
and then change one of its elements? Something like
Copy code
var list = List<MyObj>
list = list.copy(element = myObj(), index = 3)
h
Copy code
list.toMutableList().apply {
    set(3, myObj())
}
👍 1