2020-02-09-Swift-Equatable

struct MyDataStructure: Equatable {
  let name: String
  let employeeId: String

  static func == (lhs: MyDataStructure, rhs: MyDataStructure) -> Bool {
    return lhs.employeeId == rhs.employeeId
  }
}

Last updated

Was this helpful?