RosettaCodeData/Task/Deepcopy/J/deepcopy.j

7 lines
130 B
Plaintext

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