Contact: aviboots(AT)netvision.net.il
41,157 questions
53,648 answers
573 users
let point = (2, -2) switch point { case let (x, y) where x == y: print("(\(x), \(y)) x == y") case let (x, y) where x == -y: print("(\(x), \(y)) x == -y") case let (x, y): print("else (\(x), \(y))") } /* run: (2, -2) x == -y */