Next Previous Up Top Contents Index

1.4 Language differences

object-hash

Function

Summary

The hash function for the equivalence predicate ==.

Signature

object-hash object initial-state => hash-id result-state 

Arguments

object
An instance of <integer>.

initial-state
An instance of <hash-state>.

Values

hash-id
An instance of <integer>.

result-state
An instance of <hash-state>.

Description

Returns a hash code for object that corresponds to the equivalence predicate ==.

This function is a useful tool for writing hash functions in which the object identity of some component of a key is to be used in computing the hash code.

It returns a hash ID (an integer) and the result of merging the initial state with the associated hash state for the object, computed in some implementation-dependent manner.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index