Skip to content

Instantly share code, notes, and snippets.

@braidn
Created January 22, 2013 04:05
Show Gist options
  • Save braidn/4591974 to your computer and use it in GitHub Desktop.
Save braidn/4591974 to your computer and use it in GitHub Desktop.
ML Just got me off the couch
fun sum_list(xs : int list) =
if null xs
then 0
else hd xs + sum_list(tl xs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment