[m-dev.] standard library hash functions
Peter Wang
novalazy at gmail.com
Mon Aug 5 17:19:45 AEST 2019
On Mon, 5 Aug 2019 16:40:13 +1000 (AEST), Julien Fischer <jfischer at opturion.com> wrote:
>
> Hi all,
>
> With commit f495964, we now have two copies of the int (uint) hash
> function -- one in library/hash_table.m and one in
> library/version_hash_table.m. I propose we add the functions
>
> uint.hash/1
> int.hash/1
> char.hash/1 (for the sake of uniformity)
>
> and replace the ones the *hash_table modules. (Note that we already
> have both float.hash/1 and string.hash/1.) Also, if anyone can think
> of a good home for generic_hash/1, that's also duplicated between the
> two modules.
That seems okay.
A good home for generic_hash/1 would be in the bin.
Peter
More information about the developers
mailing list