Skip to content

Instantly share code, notes, and snippets.

@kunishi
Created January 29, 2014 10:21
Show Gist options
  • Save kunishi/8685204 to your computer and use it in GitHub Desktop.
Save kunishi/8685204 to your computer and use it in GitHub Desktop.
fun sumEach(nil) = (0, 0)
| sumEach((x, y)::xs) =
let
val (s1, s2) = sumEach(xs)
in
(x + s1, y + s2)
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment