string-hash, string-ci-hash - string hash functions
(import (rnrs)) ;R6RS
(import (rnrs hashtables)) ;R6RS
Returns an integer hash value for string, based on its current
contents. It is used with
This hash function is suitable for use with
This hash function ignores case. It is suitable for use with
as an equivalence function.
Returns a single value; an integer.
(= (string-hash "Quux") (string-hash "Quux")) => #t
(= (string-ci-hash "quux") (string-hash "QUUX")) => #t
(= (string-hash "foo") (string-hash "bar")) => #t or #f
This procedure is used as an argument to
This procedure can raise exceptions with the following condition types:
- &assertion (R6RS)
The wrong number of arguments was passed or an argument was outside its domain.
The first Scheme report to include this procedure was R6RS for its new
hashtable library. There is a similar procedure in SRFI-69.
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
Markup created by unroff 1.0sc, March 04, 2023.