CS135 Chapter : Module 4 - Structures.docx

74 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+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents