ar3 = [ar1, ar2]
ar3.flatten.permutation.map(&:join)



On Fri, Dec 20, 2013 at 6:27 AM, Selvag Ruby <lists / ruby-forum.com> wrote:

> ar1=['a','b','c']
> ar2=[1,2,3]
> ar3=Array.new()
>
> ar1.each do |a| ar2.each do |n| ar3.push(a+n.to_s) end end
> p ar3
>
> --
> Posted via http://www.ruby-forum.com/.
>



-- 
John Moon