Difference between revisions of "Array.clone()"

From ZCubes Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
==Array.clone() ==
 
==Array.clone() ==
  
Create a clone of the array
+
Create a clone of the array.Helpful to avoid by reference issues when array elements are overwritten etc.
  
 
==See Also==
 
==See Also==
 
[[Array.copy() |copy]]
 
[[Array.copy() |copy]]
 +
 +
[[Array.deepcopy() |deepcopy]]

Latest revision as of 03:04, 30 April 2020


Array.clone()

Create a clone of the array.Helpful to avoid by reference issues when array elements are overwritten etc.

See Also

copy

deepcopy