Values & References6 / 16
Up next

dup for independence

a = [1, 2, 3]
b = a.dup
b << 4
# a top-level change to the copy leaves the original alone
p a
p b
What you're solving

top-level edits stay separate