Answer the question
In order to leave comments, you need to log in
Rails array union?
Hello, do not tell me how best to combine several arrays. Here's how the example
f = [ 'f1', 'f2', 'f3' ]
a = [ 'a1', 'a2', 'a3' ]
result = a.map{ | v | f.map{ |v2| [v, v2] } }
#=> [, , ]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question