From: arnaud stageman Date: 2006-06-26T18:40:47+09:00 Subject: Re: Some ugly code (again) Park Heesob wrote: > Hi, > >>I have 2 Range {1..x} and {1..y} and a name >> the_name = name + y.to_s + x.to_s >> end >>end >> >>??? >> >> > If you want something one liner, > > (['rake']*(x*y)).zip((1..x).to_a*y,(1..y).to_a*x).each{|z|puts "#{z}"} > > Or > > ((1..x).to_a*y).zip((1..y).to_a*x).each{|z|puts "rake#{z}"} > > > Regards, > > Park Heesob Beuh it's remained me Perl :-) Thanks for your response Park. -- Posted via http://www.ruby-forum.com/.