[r6rs-discuss] Hash function return value constraints
asandroq at gmail.com
Fri Apr 3 10:18:54 EDT 2009
On 4/3/09, leppie <xacc.ide at gmail.com> wrote:
> The R6RS states:
> "Hash-function should accept a key as an argument and should return a
> non-negative exact integer object."
> This only the only place that mentions a non-negative integer.
> What is the rationale for making the hash value non-negative?
Maybe because the output is supposed to be used as an index into
some hash table array.
More information about the r6rs-discuss