Can I conform to Hashable using different properties than used to conform to Equatable?

后端 未结 0 1660
自闭症患者
自闭症患者 2021-01-19 12:11

How can I have an object have the same hash value but not equate?

~pseudo~

savedObj = { id: 123, status: "good" }
objects = Set()

in         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题