3 ms·
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::INFIN
by cremno 11y ago
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