From: Randy Kramer Date: 2005-03-31T06:06:20+09:00 Subject: Re: beginner iterators question On Wednesday 30 March 2005 02:29 pm, Jeff Fry wrote: > i=0 > 0.upto(3) do > puts 'try number ' + i.to_s > i = i+1 # is there a > more elegant way to do i++ ? > end Yes! (Probably several.) This is off the top of my head (and I'm a newbie) so I may get some syntax wrong: [0..3].each {|i| puts 'try number ' + i.to_s} Randy Kramer