merge-hash-ids

Returns a hash id created from the merging of two argument hash ids.  This can be used, for example, to generate a hash id for an object by combining hash ids of some of its parts.

id1, id2, and merged-id are all integers.  ordered is a boolean and determines whether the algorithm used to perform the merge is permitted to be order dependent.  If false, which is the default, then the merged result must be independent of the order in which the argument pairs are provided.  If true, then the order of the argument pairs matters because the algorithm used need not be either commutative or associative.  It is best to provide a true value for ordered when possible, as this may result in a better distribution of hash ids.  However, ordered must only be true if this will not cause the hash function to violate the second constraint on hash functions, described on page 123 of the Dylan Reference Manual.

Exported from

Modifiers

sealed

Arguments

id1An instance of <integer>.
id2An instance of <integer>.
ordered:An instance of <object>.  The default is #f.

Values

merged-idAn instance of <integer>.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of integers.
The class of all Dylan objects.