I think it is fair, for the shimming crowd, to ask objects to implement a `hash` method to return a consistent string. Collection types can degrade to O(n) in the absence of a provided consistent hash, but enhance to O(1) in the best case. This would involve having a two layer internal datastructure, an object that maps consistent hashes -> to array buckets -> to values for Set or [key, value] pairs for Map. I would also implement Map in terms of Set, just overriding the hash and equals functions to operate on the key portion of each pair in the set.
Kris Kowal _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

