Ruby - Functional Patterns in Ruby
What is the output of this Ruby code?
(1..Float::INFINITY).lazy.select { |x| x % 3 == 0 }.first(5)(1..Float::INFINITY).lazy.select { |x| x % 3 == 0 }.first(5)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions