Hey folks may I know how can we original list to another list, problem I am facing any modifcation in copied list leads to modification in original list. May I know what needs to be done in kotlin
s
serebit
12/20/2019, 1:15 AM
toMutableList()
? This creates a copy.
m
Mike
12/20/2019, 1:50 AM
I suspect mods are being made to contained objects. So unless you create a new list with copies of each element, you'll have this problem