CS135 Chapter : Module 4 - Structures.docx
Document Summary
Posn structures posn-x: posn num posn-y: posn num. Generally used for positions. (make-posn 8 1) is considered to be a value and will not be simplified by the stepper. The define-struct function requires a structure name and a list of field names. (define-struct mp3 (title artist)) A structure definition should be followed by a data definition which defines the parameters of a structure. Doing this creates a few functions for the user: A general framework within which specifics will later be filled.