Equality relations in Scala

前端 未结 3 1551
天命终不由人
天命终不由人 2021-01-05 03:01

I just stumbled on one of Tony Morris\' blog-posts about Java and a fundamental problem with the language: that of defining a bespoke equality-relation for a collection. Thi

3条回答
  •  再見小時候
    2021-01-05 03:07

    You're describing the concept of a hashing strategy. The Trove library includes sets and maps that can be constructed with hashing strategies.

提交回复
热议问题