RosettaCodeData/Task/Deepcopy/J/deepcopy.j
2023-07-01 13:44:08 -04:00

6 lines
130 B
Text

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