Toggle navigation
My Memo Wiki
Archive
Categories (ordered)
Categories
Online resources
Pages
Quick help
Tags
Submit
How to merge arrays in Ruby
30 May 2016
zip + flatten + uniq
arr1.zip(arr2, arr3).flatten.uniq
union operator
arr1 | arr2 | arr3
ruby
44
merge
1
array
6
« Previous
Archive
Next »