Next: syslib tcbuckets, Previous: syslib pointers, Up: syslib [Index]
The following bindings are exported by the library (vicare
system $hashtables)
.
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.
About the max-len argument:
#f
or not used: 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.
Return an integer hash value for bytevector, based on its current
contents. This hash function is suitable for use with
bytevector=?
as an equivalence function.
About the max-len argument:
#f
or not present: if the length of bv
is greater than 256 bytes, only the first 256 bytes are
used to compute the hash.
#t
: all the bytes in bv are used.
NOTE When the hash value is computed using a number of bytes N less than the bytevector length: applications must not assume that two bytevectors having the first N bytes equal will have the same hash value.
Return a non–negative fixnum representing the hash value for vec,
based on its current contents. When creating hash tables using vectors
as keys: this hash function is suitable for use with vector=?
as
an equivalence function.
About the max-len argument:
#f
or not present: if the length of
vec is greater than 3 items, only the first 3 items
are used to compute the hash.
#t
: all the items in vec are used.
NOTE When the hash value is computed using a number of items N less than the vector length: applications must not assume that two vectors having the first N items equal will have the same hash value.
Return a non–negative fixnum representing the hash value for ell,
based on its current contents. When creating hash tables using lists
as keys: this hash function is suitable for use with list=?
as
an equivalence function.
About the max-len argument:
#f
or not present: if the length of
ell is greater than 3 items, only the first 3 items
are used to compute the hash.
#t
: all the items in ell are used.
NOTE When the hash value is computed using a number of items N less than the list length: applications must not assume that two lists having the first N items equal will have the same hash value.
Hash function for pairs and immutable pairs.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Compute and return the hash value.
Hash function for enumeration sets.
Return a fixnum representing the hash value of ptr.
Hash function for promise objects.
Compute and return the hash value.
NOTE The result returned by these hash functions depends on the values in the fields, so: it will change if the fields are mutated.
Setter and getter for the hashtable run–time type descriptor.
des must be an instance of <hashtable-type-descr>
.
Next: syslib tcbuckets, Previous: syslib pointers, Up: syslib [Index]