Swift Equatable
struct Employee: Hashable {
...
}
SAMER SAEID
struct Employee: Hashable {
...
}
static func == (lhs: Employee, rhs: Employee) -> Bool {
return lhs.salary == rhs.salary
}