Skip to content

Instantly share code, notes, and snippets.

@chribben
Created May 1, 2012 21:37
Show Gist options
  • Save chribben/2571631 to your computer and use it in GitHub Desktop.
Save chribben/2571631 to your computer and use it in GitHub Desktop.
F# implementation of list sum
let rec sum list =
match list with
| [] -> 0;
| h::t -> h + sum t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment