1 Beginning Student
2 Beginning Student with List Abbreviations
3 Intermediate Student
4 Intermediate Student with Lambda
5 Advanced Student
Index
On this page:
define-struct
Version: 4.0.2

 

1.2 define-struct

(define-struct structid (fieldid ...))

Define a new type of structure. The structure’s fields are named by the fieldids in parentheses. After evaluation of a define-struct form, a set of new primitives is available for creation, extraction, and type-like queries:

The created names must not be the same as a primitive or another defined name.