like `someList[:]` in Python
# announcements
k
like
someList[:]
in Python
m
If you want to be explicit, you may do
ArrayList(myList)
to make a copy.
Useful when sending a list to Java code, which doesn't know the difference between mutable and immutable lists.