Ruby get nth item from massive range

Posted by Bub Bradlee on Stack Overflow See other posts from Stack Overflow or by Bub Bradlee
Published on 2010-04-28T19:23:40Z Indexed on 2010/04/28 19:27 UTC
Read the original article Hit count: 324

Filed under:
|
|

Suppose I have this range:

("aaaaa".."zzzzz")

How would I get the Nth item from the range without generating the entire thing before hand/each time?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about range