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

Which statement correctly describes how array vs hash patterns match in `case/in`?

case [1, 2, 3] in [1, 2] :array_partial else :no_match end case { a: 1, b: 2 } in { a: 1 } :hash_partial end