Functional Problem Solving (CSC 151 2015F) : Outlines

Outline 21: Anonymous Procedures, Revisited


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

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support

Other Good Things

Notes on Exam 1

What is a procedure?

Describing Procedures

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.

Anonymous Procedures

Other ways to build anonymous procedures

Lab