For
Looping constructs in Racket.
All of these are Google Docs.
- Presentation on For, includes information and some exercises.
- For Loop Exercises 1
- For Loop Exercises 2
- Learning for/fold
Intermediate Student Mode
You can access the “for” command inside Intermediate Student Mode by
using (require racket/base)
.
Place that require
after any define-struct
.
(require picturing-programs)
(define-struct model (score x y))
(require racket/base)
If you require racket/base before doing define-struct
,
a struct like (make-model 500 8 15)
will print out as (model ...)
instead of showing the contents!