On Thu, Mar 1, 2012 at 7:01 PM, Peter Bex <peter....@xs4all.nl> wrote:
>
> If they do it "correctly", how do they deal with differences in initial
> bucket size, and what do they do with hash tables having identical
> key/values but different hashing or different comparison procedures?
>

If I were to write a `equal?` procedure for hash-tables, my test for
"correctness" would be:

(equal? hash-table1 hash-table2) iff (equal? (hash-table->alist
hash-table1) (hash-table->alist hash-table2))

provided that `hash-table->alist` does the obvious thing.

-- 
-alex
http://www.artisancoder.com/

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to