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

Which of these calls on a lazy enumerator returns a plain Array instead of another Enumerator::Lazy?

e = (1..Float::INFINITY).lazy.map { |x| x * 2 }