Structs and Match
Structures hold a fixed number of different kinds of items. Each field is always holding the same kind of object. (Conceptually; in fact there are no rules enforced by ordinary Racket.)
(struct amazing (name year specialization) #:transparent)
Remember: you have to declare structures #:transparent
.
The biggest consequence of #:transparent
is that two structures with
identical fields are considered equal?
.
Mini-project
Build a symbol table with update operations. (TBA DETAILS)