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 thoughts about the course? Let us know: heads@cs51.io.

Setup instructions #

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

Lab puzzle #

Today’s lab puzzle concerns the following type:

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