Combination of two arrays in Ruby

What is the Ruby way to achieve following?

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

I want an array:

=> [f(1,3) ,f(1,4) , f(2,3) ,f(2,4)]

Answers 3

Related Articles