Functional Problem Solving (CSC 151 2015S) : EBoards

CSC151.01 2015S, Class 36: Pairs and Pair Structures


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support (Afternoon Section)

Miscellaneous

Nothing at present

Other Good Things (no extra credit)

Questions

Quiz

Lab

Debrief

Why do we do this?

Printing a pair

 Print an open paren
 Print the car
 Loop over the cdr
   cdr is null: print right paren
   cdr is a pair: print the car and do it again with the cdr
   cdr is not a pair: print a period and the cdr and a right paren

Checking listness / writing listp?