D
Dan No
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
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