Functional Problem Solving (CSC 151 2015S) : Outlines

Outline 20: Anonymous Procedures, Revisited


Held: Monday, 23 February 2015

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

Extra Credit Opportunities

Academic

Peer Support (Morning Section)

Peer Support (Afternoon Section)

Other Good Things

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