Lab 4

Lab 4 Instructions #

Reminders #

  • While other students are coming into class, follow the setup instructions below. (But please wait until you’re instructed before beginning work on the lab.)

  • Say hello again to your tablemates.

  • Get out paper and pencil. You’ll need it for this lab.

  • Code not working? Talking to your partner, yes. Staring at the screen, no.

  • High five when you solve a problem. High ten on hard problems.

  • Do you have hints about the course? Let me know: shieber@seas.harvard.edu.

Setup instructions #

Head to http://url.cs51.io/lab4 and follow the Lab Procedures.

Lab puzzle #

Kim writes a function with the following type:

  ('a * 'b list -> 'a) * ('b * 'a) -> 'a option -> 'b

Sandy decides to rewrite the function, and implements a curried version. What is the type of Sandy’s function?