daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top