CS135 Chapter : Module 4 - Structures.docx

73 views1 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents