J
Jason Lillywhite
Why is it that if I create an array, a = [1,2,3]
then do b = a
then b[0] = 99
why is that a[0] magically becomes 99 too?
how can I preserve 'a' after I make a copy of it, then change that new
copy?
then do b = a
then b[0] = 99
why is that a[0] magically becomes 99 too?
how can I preserve 'a' after I make a copy of it, then change that new
copy?