RosettaCodeData/Task/Deepcopy/J/deepcopy.j

7 lines
130 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07: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