


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



CMSC 330 2
let plus (x, y) = x + y;; plus (3, 4);;
let plus t = match t with (x, y) = x + y;; plus (3, 4);;
CMSC 330 3
CMSC 330 4
let plusThree (x, y, z) = x+y+z let addOne (x, y, z) = (x+1, y+1, z+1)
let sum ((a, b), c) = (a+c, b+c)
let plusFirstTwo (x::y::_, a) = (x+a, y+a)
CMSC 330 5
let tls (_::xs, _::ys) = (xs, ys)
CMSC 330 6
CMSC 330 7
int * int int * string * float int * string list * char (int * int) list (int * int) list error
CMSC 330 8
CMSC 330 9
CMSC 330 10
CMSC 330 11
CMSC 330 12
CMSC 330 19
CMSC 330 20