Changes between Version 5 and Version 6 of GeneralizedEqualCowan
 Timestamp:
 12/01/12 23:52:31 (5 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

GeneralizedEqualCowan
v5 v6 1 1 == Generalized `equal?` predicate == 2 2 3 `(generalizedequal? `''obj1 obj2'' `.`comparatorlist''`)`3 `(generalizedequal? `''obj1 obj2''` . `''comparatorlist''`)` 4 4 5 Compares ''obj1'' and ''obj2'' for equality. A ''comparator'' is a procedure that is given two arguments to compare. It returns `#t` if its arguments are to be considered equal, `#f` if they are to be considered unequal, and any other value if it cannot decide. The third argument of a comparators consists of a list of comparators to be used in recursive calls to `generalize equal?`.5 Compares ''obj1'' and ''obj2'' for equality. A ''comparator'' is a procedure that is given two arguments to compare. It returns `#t` if its arguments are to be considered equal, `#f` if they are to be considered unequal, and any other value if it cannot decide. The third argument of a comparators consists of a list of comparators to be used in recursive calls to `generalizedequal?`. 6 6 7 7 First, each element of ''comparatorlist'' is invoked on ''obj1'' and ''obj2'', passing ''comparatorlist'' as its third argument. If the comparator returns `#t` or `#f`, that is the result. … … 25 25 `(charcicomparator `''obj1'' ''obj2 comparatorslist''`)` 26 26 27 A comparator that returns `#t` if ''obj1'' and ''obj2'' are both characters that are equal by `charci=?`, `#f` if they are not equal by `charci=?`, and a third value otherwise. `The ''comparatorslist'' argument is ignored.27 A comparator that returns `#t` if ''obj1'' and ''obj2'' are both characters that are equal by `charci=?`, `#f` if they are not equal by `charci=?`, and a third value otherwise. The ''comparatorslist'' argument is ignored. 28 28 29 29 `(stringcicomparator `''obj1' obj2 comparatorslist''`)`