Data Definition Guidelines - Data Definition Guidelines...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Data Definition Guidelines : Structures Example : a structure for capturing the name, weight, and favorite food for a boa Data definition format : ;; A boa is a ;; (make-boa symbol number symbol) (define-struct boa (name weight food)) Template format : the template pulls out all the fields from the structure (define (fun-for-boa a-boa) (boa-name a-boa) ... (boa-weight a-boa) ... (boa-food a-boa) ... )
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon