RosettaCodeData/Task/Deepcopy/J/deepcopy.j

7 lines
130 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
a=:b=: 2 2 2 2 2 NB. two copies of the same array
b=: 3 (2)} b NB. modify one of the arrays
b
2 2 3 2 2
a
2 2 2 2 2