Skip to main content
Journey Uncommon Logo
JourneyUncommon
easySwifttuples and pattern matchingSingle-choice MCQ

Which case matches when point = (0, 5)?

let point = (0, 5) switch point { case (0, 0): print("origin") case (_, 0): print("on x-axis") case (0, _): print("on y-axis") case let (x, y): print("somewhere: \(x), \(y)") }