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

Using the find pattern, what does this pattern match bind?

case [1, 2, 3, 4, 5] in [*, 3 => x, *post] puts "#{x} #{post.inspect}" end