Guest User

Untitled

a guest
Jan 12th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. let rec max l max_value =
  2. match l with
  3. | [] -> max_value
  4. | h::t when h > max_value -> max t h
  5. | h::t -> max t max_value;;
  6.  
  7. print_int(max [1;2;3;4;5] 0);;
Add Comment
Please, Sign In to add comment