Ruby Merge Marrys уникальные
a = [1, 3, 5, 6]
b = [2, 3, 4, 5]
c = (a + b).uniq
=> [1, 3, 5, 6, 2, 4]
patrick204nqh
a = [1, 3, 5, 6]
b = [2, 3, 4, 5]
c = (a + b).uniq
=> [1, 3, 5, 6, 2, 4]
a = [1, 2, 3, 4, 5]
b = [2, 4, 6]
a | b
#=> [1, 2, 3, 4, 5, 6]