Lab 4 Instructions #
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 us know: email@example.com.
Setup instructions #
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?