From: why the lucky stiff Date: 2002-12-02T11:28:58+09:00 Subject: Re: For statements Daniel Carrera (dcarrera@math.umd.edu) wrote: > Can I use a for statement to do the equivalent this?: > 3.step(9,2) {|i| puts i } You know that Ranges can be handy with the for..in? for i in (3..9).reject { |i| i % 2 == 0 } puts i end for i in (3..9) next if i % 2 == 0 puts i end _why