Functional Problem Solving (CSC 151 2015F) : EBoards
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)]
Overview
map (know section and o for map)if, when, and condOther than these stupid problems, why would we use let outside a
procedure? (EG)
It's rare that we do so, but it's something useful to know. See extra 1 for an example.
For those of who are puzzled by bindings, can you give us some more questions?
What do you get for the following?
(define alpha 3)
(let ([alpha 5]
[beta (+ alpha 1)])
(list alpha beta))
; '(5 6)
; '(3 6)
; Error!
; '(3 4)
(let* ([alpha 5]
[beta (+ alpha 1)])
(list alpha beta))
(let ([delta 5]
[epsilon (+ delta 1)])
(list delta epsilon))
Why would someone change an existing procedure?
Sometimes your users are evil.
What is the lab writeup?
5d and 6b