Here's a problem for which I can't see an obvious solution, and hope
someone might have some suggestions.
I have several arrays, each with a variety of text values in them. I
need to construct some strings consisting of each unique combination of
the arrays in order. Here's a very simple example:
first_array = ['one','two']
second_array = ['three','four']
required output:
one,three
one,four
two,three
two,four
There are more arrays than that and more entries in each array, but
that's the basic idea. Any advice welcome - thanks!
--
Posted via http://www.ruby-forum.com/.