- (define-record-type (RTD OPTION ...) CONSTRUCTOR PREDICATE FIELD ...)syntax
- (define-record-type RTD CONSTRUCTOR PREDICATE FIELD ...)syntax
Defines a new record type RTD, optionally passing a set of OPTIONs to make-rtd. The record has fields described by the given FIELD specifications.
If CONSTRUCTOR is not #f, a constructor procedure for the new record type is defined using define-record-constructor, if PREDICATE is not #f a predicate procedure for the new record type is defined using define-record-predicate.
Accessors and mutators for the record type's fields are defined using define-record-field.