Teaching Notes

Day 1

HW: Reading guide, part A.

Try to cover a little more in class.

Day 2

CW II.2

  • zip (“the most important thing in chapter 2”)
  • review list comprehension (of course)
  • Don’t write Racket code in Haskell. Show one tuple example using fst and snd. Ugly function names, ugly code. Show the (a,b) pattern.
  • Walkthrough: replicate - repeat - cycle. Ask class to predict various examples. Show :t type signatures and talk about how to infer the purpose of a function from its signature.

HW: complete the reading guide.

Day 3: Types I (50 min)

  • Basic type signatures. Int. List of Int.
  • Functions
    • Base case pattern
    • Racket-style (explicit head, tail) recursion vs pattern

CW: II.4

Last modified November 4, 2023: Added some old notes on teaching. (35946c7)