Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubypattern matching case inSingle-choice MCQ

Given this `case/in`, what is printed?

config = [1, 2] case config in [Integer => a, Integer => b] puts "matched: #{a}, #{b}" else puts "no match" end