From: "Iñaki Baz Castillo" Date: 2009-02-11T17:40:27+09:00 Subject: Re: FixNum#times is correct? El Miércoles, 11 de Febrero de 2009, Ben Bleything escribió: > I think you may have clipped some of the output. Here's what I get: > > irb(main):005:0> 5.times {|i| puts i} > 0 > 1 > 2 > 3 > 4 > => 5 > > It's puts'ing 0-4, and then returning 5. To see this more clearly, try > this: > > 5.times {|i| puts "-- #{i}" } Ops, my IRB configuration is not helping me :) Thanks for the explanation. -- Iñaki Baz Castillo