Just randomally stumbled across this blog post:

http://banisterfiend.wordpress.com/2009/10/02/wtf-infinite-ranges-in-ruby/

which talks about doing this:

Inf = 1.0 / 0.0
(1..Inf)

which actually works :-)

--nahum

-- 
You received this message because you are subscribed to the Google Groups 
"WellRailed" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/wellrailed/-/NjB7yy7eqC0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wellrailed?hl=en.

Reply via email to