Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby merge arrays unique

a = [1, 3, 5, 6]
b = [2, 3, 4, 5]

c = (a + b).uniq
=> [1, 3, 5, 6, 2, 4]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #merge #arrays #unique
ADD COMMENT
Topic
Name
9+8 =