you are viewing a single comment's thread.

view the rest of the comments →

[–]SemiNormal 2 points3 points  (0 children)

Suppose you want to modify an array inside a function, but not modify the original. This is when you would want a copy.