To infinity and beyond

15 views
Skip to first unread message

nahum

unread,
Feb 14, 2012, 7:27:03 PM2/14/12
to wellr...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages