Functional Problem Solving (CSC 151 2015F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] [Remote Access]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2015F)] [Davis (2013F)] [Rebelsky (2015S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Held: Tuesday, 10 November 2015
Back to Outline 38 - Vectors. On to Outline 40 - On Two-Dimensional Design.
Summary
Related Pages
Overview
Administrivia
When asking for help, it's important that you choose your procedure and variable names well, and that you document your procedures a bit. Neither I nor the tutors appreciate the overhead of dealing with something like
(define fiddledidee
(lambda (a b)
(let kernel ([thinga ""]
[mabob (cons a b)])
...)))
I've gotten reinforcement that Problem 5 is really easy once you think
it through (of course, the statement was preceded by "Sam, you are evil").
So, to reiterate the Q&A section:
for-each typically takes a procedure and a list as parameters.for-each in this problem.for-each will take as its input.x in
(for-each (lambda (x) ...) (iota 10))?