Previous: stdlib hashtable inspection, Up: stdlib hashtable [Index]
The equal-hash
, string-hash
, and string-ci-hash
procedures of this section are acceptable as the hash functions of a
hashtable only if the keys on which they are called are not mutated
while they remain in use as keys in the hashtable.
Return an integer hash value for obj, based on its structure and
current contents. This hash function is suitable for use with
equal?
as an equivalence function.
NOTE Like
equal?
, theequal-hash
procedure must always terminate, even if its arguments contain cycles.
Return an integer hash value for string, based on its current
contents. This hash function is suitable for use with string=?
as an equivalence function.
As Vicare extension:
#f
or not present: if the length of
string is greater than 64 characters, only the first
64 bytes are used to compute the hash.
#t
: all the bytes in string are used.
NOTE When the hash value is computed using a number of characters N less than the string length: applications must not assume that two strings having the first N characters equal will have the same hash value.
Return an integer hash value for string based on its current
contents, ignoring case. This hash function is suitable for use with
string-ci=?
as an equivalence function.
The optional argument max-len is used as in string-hash
.
Return an integer hash value for symbol.
Previous: stdlib hashtable inspection, Up: stdlib hashtable [Index]