Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What makes you think they're hidden? Enumerator moved from stdlib to core in 1.9 and also calling #to_enum isn't needed anymore:

    enum = 0.upto(Float::INFINITY)
    enum.next # => 0
    enum.next # => 1


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: