>
> The "tdelete-duplicates" uses a hash-table to store already seen elements: 
> if the element is in the hash table, just filter it out.  If it is not, we 
> do: (hash-set! already-seen element #t). That should be constant timeish.
>
 
I understand how that works for the usual eq? / eqv? / equal? equality 
relations, but how could that work for *arbitrary* equivalence relations? 
If you passed a case-insensitive string comparison function to 
tdelete-duplicates, storing already seen elements in a hash table wouldn't 
help because two "equal" strings could have different hash codes.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/90506548-c7fc-4f0d-9321-00cb03490aec%40googlegroups.com.

Reply via email to