- It is harder to explain and understand. It requires a new helper
procedure that returns a weird object.
That to me suggests another idea: Perhaps we can introduce
a "comparator" type which is a record with (optionally):
- an equality predicate
- an ordering operator (either like < or which returns -1/0/1)
(If the ordering operator returns -1/0/1 then it can provide
a default for equality predicate.)
- a hash operation
One or more of these can be "don't care".
A comparator object can be passed to a hash-table constructor, to
a sort routines, to a binary search routine, etc.
_______________________________________________ Scheme-reports mailing list Scheme-reports@x http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports