From: jake kaiden Date: 2012-04-15T11:49:16+09:00 Subject: Re: Creating an array containing sums of combinations of ranges hi Jeff, have you checked out Array#product ? seems like that might do the trick for you... a1 = ['n', 'm'] a2 = ['x', 'y'] p a1.product(a2) => [["n", "x"], ["n", "y"], ["m", "x"], ["m", "y"]] if your first array is composed of ranges, those can easily be converted into arrays... hth- - j -- Posted via http://www.ruby-forum.com/.