[r6rs-discuss] Hash function return value constraints
Alex Queiroz
asandroq at gmail.com
Fri Apr 3 10:18:54 EDT 2009
Hallo,
On 4/3/09, leppie <xacc.ide at gmail.com> wrote:
> Hi
>
> 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.
Cheers,
--
-alex
http://www.ventonegro.org/
More information about the r6rs-discuss
mailing list