Hi,
How is that different from the cartesion product of all subarrays?
a = [["X", "Y"], ["E"], ["S", "T", "R"]]
prod = a[0].product *a[1..-1]
p prod
···
--
Posted via http://www.ruby-forum.com/.
Hi,
How is that different from the cartesion product of all subarrays?
a = [["X", "Y"], ["E"], ["S", "T", "R"]]
prod = a[0].product *a[1..-1]
p prod
--
Posted via http://www.ruby-forum.com/.