From: Julian Leviston Date: 2009-01-30T14:43:39+09:00 Subject: Re: How to do a for loop...and iterate a set number of times? Um the beginning is the beginning and the end is the end. It's simple. You don't have to manage it! Sent from my iPhone On 30/01/2009, at 9:16 AM, Dan No wrote: > So painfully basic, but I'm just starting Ruby and am coming to it > from > C/C++/Java, etc. and some of the syntax is unnatural to me, and yes, > I've tried Google. I have an array of things and I want to access the > first 10...how do I do that? > > for thing in things #(how do I set the beginning and end of the loop?) > #do something > end > -- > Posted via http://www.ruby-forum.com/. >