Next: , Previous: , Up: iklib records   [Index]


6.19.6 Equality predicate for records

A record–type’s equality predicate is a function accepting as arguments two instances of a record–type; the return value is: #t if the two objects are the same and #f otherwise.

Function: record-type-equality-predicate-set! rtd equal-pred

Select the procedure equal-pred as equality predicate for records of type rtd; if equal-pred is #f, instances of type rtd make use of the built–in Scheme objects equality predicate.

Function: record-type-equality-predicate rtd

Return the function set as custom equality predicate for records of type rtd; return #f if rtd has no custom equality predicate.

Function: record-equality-predicate record

Return #f or the function being the custom equality predicate for the record record.