how to keep only items repeating across two arrays ruby code example
Example: ruby merge array unique
a = [0,1,2,3,4]
b = [2,3,4,5,6,7,8,9,0]
c = a | b
=> [0,1,2,3,4,5,6,7,8,9]
a = [0,1,2,3,4]
b = [2,3,4,5,6,7,8,9,0]
c = a | b
=> [0,1,2,3,4,5,6,7,8,9]