Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3019

For loops trouble

From Daniel Johnson <zaldivar1841@gmail.com>
Newsgroups comp.lang.ruby
Subject For loops trouble
Date 2011-04-16 13:27 -0500
Organization Service de news de lacave.net
Message-ID <020937ce0d7f4e0fc8a6590932f71e15@ruby-forum.com> (permalink)

Show all headers | View raw


I am trying to translate a program I have in Java into ruby and having
trouble translating this for loop
   for(int i = 0; a[i] < x;i++)
I tried this
   for i in a[i]...x
but it produce some errors. Any help will be appreciated. Thank you.

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

For loops trouble Daniel Johnson <zaldivar1841@gmail.com> - 2011-04-16 13:27 -0500
  Re: For loops trouble Josh Cheek <josh.cheek@gmail.com> - 2011-04-16 13:36 -0500
    Re: For loops trouble Josh Cheek <josh.cheek@gmail.com> - 2011-04-16 13:38 -0500
  Re: For loops trouble 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-16 15:10 -0500
  Re: For loops trouble Christopher Dicely <cmdicely@gmail.com> - 2011-04-16 15:30 -0500
  Re: For loops trouble botp <botpena@gmail.com> - 2011-04-16 20:04 -0500

csiph-web