chickadee » srfi-128 » default-hash

default-hash objprocedure

This is the hash function used by default comparators, which accepts a Scheme value and hashes it in some implementation-defined way, subject to the following conditions:

  • When applied to a pair, it must return the result of hashing together the values returned by default-hash when applied to the car and the cdr.
  • When applied to a boolean, character, string, symbol, or number, it must return the same result as boolean-hash, char-hash, string-hash, symbol-hash, or number-hash respectively.
  • When applied to a list or vector, it must return the result of hashing together the values returned by default-hash when applied to each of the elements.