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: Friday, 2 October 2015
Back to Outline 20 - Naming Local Values. On to Outline 22 - Images as Functions from Position to Colors.
Summary
We revisit procedures in Scheme. We consider a variety of techniques for writing anonymous procedures, procedures without names.
Related Pages
Overview
Administrivia
Traditionally, we write something like
(define *name-of-procedure*
(lambda (*parameters*)
*body*))
When applying a procedure, we effectively substitute the arguments we call the procedure on for the parameters in the body, and then evaluate the body.
map((lambda (x y) (* (+ x y) (- x y))) 2 3)(map (lambda (x) (* 5 (+ 1 x))) (iota 10))