+ 1
This is my 2nd question from swift please help me
I FINALLY STARTED NEW LESSONS IN SWIFT BUT THERE IS THIS THING “WHERE” AND I’M CONFUSED WITH THIS CODE let myPoint = (1, -1) switch myPoint { case let (x, y) where x == y: print("(\(x), \(y)) is on the line x == y") case let (x, y) where x == -y: print("(\(x), \(y)) is on the line x == -y") case let (x, y): print("(\(x), \(y)) is just some arbitrary point") } PlEASE HELP ME
1 Odpowiedź
+ 1
thanks so much you are a life saver