H
Hamza Haiken
Hi
Can someone explain to me why is this happening ?
According to my logic, when I do matrix2.shift, it should have nothing
to do with matrix1. Why's this one shifted as well ?
Can someone explain to me why is this happening ?
=> ["Two", "Three"]matrix1 = ["One","Two","Three"] => ["One", "Two", "Three"]
matrix2 = matrix1 => ["One", "Two", "Three"]
matrix2.shift => "One"
matrix2 => ["Two", "Three"]
matrix1
According to my logic, when I do matrix2.shift, it should have nothing
to do with matrix1. Why's this one shifted as well ?