struct Employee: Hashable { var name: String } let object1 = Employee(name: "Sabby") let object2 = Employee(name: "Smith") // print hash values print(object1.hashValue) print(object2.hashValue)