Is there any equivalent technique of Array#product?

Is there any equivalent technique of Array#product?

Can the same code be done in any other way?

[1,2,3].product([6,7])
#=> [[1, 6], [1, 7], [2, 6], [2, 7], [3, 6], [3, 7]]

Thanks in advance!

···

--
Posted via http://www.ruby-forum.com/.

Yes. Why?

Adam Prescott wrote in post #1103670:

Yes. Why?

Out of curiosity.

···

--
Posted via http://www.ruby-forum.com/\.