Values & References7 / 16
Up next

dup is shallow

original = [[1, 2], [3, 4]]
copy = original.dup
# inner arrays are shared between the two
copy[0] << 99
p original
What you're solving

the top level is copied only