[Q] Array.new - strange behavior

p “P1”
foo = Array.new(3,[0,0])

foo = Array.new(3) {Array.new}

···

foo.each do |foo1|
p foo1.id
end