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

What does this lazy pipeline using filter_map over an infinite range produce?

r = (1..Float::INFINITY).lazy.filter_map { |x| x * 10 if x.even? }.first(3) p r