Functional Problem Solving (CSC 151 2014F) : Outlines

Outline 20: Anonymous Procedures


Held: Wednesday, 1 October 2014

Back to Outline 19 - Conditionals. On to Outline 21 - Naming Local Values.

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

Quiz Topics

Reminder: You may bring a sheet of notes to Friday's quiz.

Extra Credit Opportunities

Academic

Peer Support

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