Created
January 26, 2014 09:19
-
-
Save cohalz/8630486 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let rec max_list = function | |
| [] -> 0 | |
| x::xs -> let max = max_list xs in if x >= max then x else max |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment