|
|
|
deepCopy athing
outputs a copy of athing. Lists and Arrays are iterated into, so if one mutates this copy, the original athing stays the same.
Examples:
a={1 2 3}
b=deepCopy a
a.2="hallo
b ;{1 2 3} ;-)
l=[1 2 3]
b=deepCopy l
l.2="hallo
b ;[1 2 3] ;-)
|
|
|
|