[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Newbie question
From: 7stud -- <bbxx789_05ss () yahoo ! com>
Date: 2007-11-01 21:41:47
Message-ID: bdcf4208d2d2f3a9b69d5a2561645ca6 () ruby-forum ! com
[Download RAW message or body]
7stud -- wrote:
> So, I try to do this instead:
>
> 10.times do |i|
> ...
> ...
> end
I should mention that this code:
10.times do |i|
is not equivalent to:
(1..10).each do |i|
because times() starts counting at 0 and ends at 9.
--
Posted via http://www.ruby-forum.com/.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic