Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubylazy enumeratorsSingle-choice MCQ

A lazy enumerator does not define every Enumerable method. What happens here?

(1..Float::INFINITY) .lazy .map { |x| [x, -x] } .flatten .first(3)