Functional Problem Solving (CSC 151 2014F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Held: Friday, 3 October 2014
Back to Outline 20 - Anonymous Procedures. On to Outline 22 - Images as Functions from Position to Colors.
Summary
We consider why and how you name values within a procedure. We also consider why and how you limit access to those names to within the procedure.
Related Pages
Overview
let
.let*
.Administrivia
let
let
.let
has the form
(let ((name_1 exp_1) (name_2 exp_2) ... (name_n exp_n)) body)
let
has the meaning:
You can use let
in a simple expression:
(define values (list 1 4 2 4 1 5 9)) (let ((largest (max values)) (smallest (min values))) (/ (+ largest smallest) 2))
More frequently, we use let
within a procedure.
let*
let*
rather than let
.let*
has the form
let*
has the meaning: