Created
October 30, 2014 10:21
-
-
Save sugitach/40a4e4de302cc2a6c8fa 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 gakusei_max_new lst = match lst with | |
[] -> { name = "void"; tensuu = 0; seiseki = "0"; } | |
| first :: rest -> let max = gakusei_max rest in | |
if (first.tensuu > max.tensuu) | |
then first | |
else max |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment