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

What are the classes of t and f?

t = (1..Float::INFINITY).lazy.map { |n| n * 2 }.take(3) f = (1..Float::INFINITY).lazy.map { |n| n * 2 }.first(3) p t.class p f.class