Changes between Version 5 and Version 6 of GeneralizedEqualCowan


Ignore:
Timestamp:
12/01/12 23:52:31 (4 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GeneralizedEqualCowan

    v5 v6  
    11== Generalized `equal?` predicate == 
    22 
    3 `(generalized-equal? `''obj1 obj2'' `.` comparator-list''`)` 
     3`(generalized-equal? `''obj1 obj2''` . `''comparator-list''`)` 
    44 
    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?`. 
     5Compares ''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 `generalized-equal?`. 
    66 
    77First, each element of ''comparator-list''  is invoked on ''obj1'' and ''obj2'', passing ''comparator-list'' as its third argument.  If the comparator returns `#t` or `#f`, that is the result. 
     
    2525`(char-ci-comparator `''obj1'' ''obj2 comparators-list''`)` 
    2626 
    27 A comparator that returns `#t` if ''obj1'' and ''obj2'' are both characters that are equal by `char-ci=?`, `#f` if they are not equal by `char-ci=?`, and a third value otherwise.`  The ''comparators-list'' argument is ignored. 
     27A comparator that returns `#t` if ''obj1'' and ''obj2'' are both characters that are equal by `char-ci=?`, `#f` if they are not equal by `char-ci=?`, and a third value otherwise.  The ''comparators-list'' argument is ignored. 
    2828 
    2929`(string-ci-comparator `''obj1' obj2 comparators-list''`)`