Functional Problem Solving (CSC 151 2016S) : Outlines

Outline 21: Anonymous Procedures, Revisited


Held: Monday, 29 February 2016

Back to Outline 20 - Collage - Copy and Paste. 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

Reminders

Upcoming Work:

Extra Credit

Academic / Artistic

Peer

Regular Peer

Misc

Far in the Future

No Extra Credit, But Still Good

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