How to select array elements in a given range in Ruby?

Viewed 36538

I have an array with let's say, 500 elements. I know I can select the first 100 by doing .first(100), my question is how do I select elements from 100 to 200?

5 Answers
Related