Next: , Previous: , Up: srfi comparators   [Index]


2.38.11 Primitive applicators

Function: comparator-test-type comparator obj

Invoke the type test predicate of comparator on obj and return what it returns.

Function: comparator-check-type comparator obj
Function: comparator-check-type comparator obj who

Invoke the type test predicate of comparator on obj and return #t if it returns #t; otherwise signal an error.

As a Vicare extension: the optional argument who must be compatible with the argument of make-who-condition and it is used to raise a descriptive exception when obj does not match the comparator.

Function: comparator-equal? comparator obj1 obj2

Invoke the equality predicate of comparator on obj1 and obj2 and return what it returns.

Function: comparator-compare comparator obj1 obj2

Invoke the comparison procedure of comparator on obj1 and obj2 and return what it returns.

Function: comparator-hash comparator obj

Invoke the hash function of comparator on obj and return what it returns.