Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
0 people like it. Like the snippet!
1: 2: 3: 4: 5: 6: 7:
type exp = Num of int | Add of exp * exp let rec eval e = match e with | Num e' -> e' | Add (e1,e2) -> eval e1 + eval e2