(sagittarius record) - Extra record inspection library

Library (sagittarius record)

This library provides extra record operations.

Function record-type? obj

Returns #t if obj is record type, otherwise #f.

Function make-record-type name rtd rcd

Name must be symbol. Rtd must be record type descriptor. Rcd must be record constructor descriptor.

Associates given rcd to gien rtd.

NOTE: this procedure doesn't create fresh record type but modifies given arguments destructively.

Function record-type-rtd record-type

Record-type must be record type.

Returns associated rtd from record-type.

Function record-type-rtd record-type

Record-type must be record type.

Returns associated rcd from record-type.

Note: These procedures are not for using casually.