I wanted to be able to add two (Int,Int)
tuples. So I defined
func + (left:(Int,Int), right:(Int,Int)) -> (Int,Int) {
return (left.0 + right.0, left.1 + right.1)
}
but Xcode is not happy, saying:
consecutive declarations on a line must be separated by ';'
What's wrong with my infix operation?