Swift - Operators and Expressions
What is wrong with this operator overloading code?
struct Score {
var points: Int
static func - (lhs: Score, rhs: Score) {
return Score(points: lhs.points - rhs.points)
}
}