DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+8 =
Submit