Created
January 22, 2013 04:05
-
-
Save braidn/4591974 to your computer and use it in GitHub Desktop.
ML Just got me off the couch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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