Next Previous Up Top Contents Index

3.1 The Collections library

3.1.2 Hash functions

Different hash functions are not required to return the same hash code for equal or even identical objects. For instance,

collection-hash(#(), object-hash, object-hash);

is not guaranteed to return the same values as

sequence-hash(#(), object-hash);

Furthermore, collection-hash with ordered: #t is not guaranteed to return the same hash code as collection-hash with ordered: #f. Such a requirement would render the ordered: keyword useless.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index