From: Gary Wright Date: 2007-04-07T10:25:58+09:00 Subject: Re: Newbie question - ruby equivalence of for loop? On Apr 6, 2007, at 7:15 PM, dwyer@o2.ie wrote: > thanks for the code Gary, I'm goin work through it.its quite > different from how I implemented the > solution in java,(it really is a paradigm shift), thanks again for > the reply This alternative version is a bit simpler. It might be better to understand this one and then go back to my first one: [0,1,2].each { |i| [2,4,6,8].each { |j| puts "#{i}, #{j}" } } Gary Wright