Hey folks may I know how can we original list to a...
# getting-started
a
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
toMutableList()
? This creates a copy.
m
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
j
what are the elements in the list?