Difference between revisions of "Array.deepcopy()"
Jump to navigation
Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...") |
|||
Line 5: | Line 5: | ||
==Array.deepcopy()== | ==Array.deepcopy()== | ||
− | Returns the deep copy of an array. | + | Returns the deep copy of an array.Helpful to avoid by reference issues when array elements are overwritten etc. |
c=[[1,2,3],[4,5,6],[7,8,9]]; | c=[[1,2,3],[4,5,6],[7,8,9]]; |
Latest revision as of 03:04, 30 April 2020
Array.deepcopy()
Returns the deep copy of an array.Helpful to avoid by reference issues when array elements are overwritten etc.
c=[[1,2,3],[4,5,6],[7,8,9]];
c.deepcopy()
1 | 2 | 3 |
4 | 5 | 6 |
7 | 8 | 9 |