# in Ruby you can't change param referencedef swap_strings(v1, v2) v1[0], v2[0] = v2[0], v1[0]ends1 = ["A"]s2 = ["B"]swap_strings(s1, s2)# s1[0] is "B", s2[0] is "A"puts "s1 is #{s1}"puts "s2 is #{s2}"