fork download
  1. let yoba_min x y z =
  2. let min' = function
  3. | 0, x | x, 0 -> x
  4. | x, y -> min x y in
  5. min' (x, min' (y, z))
  6.  
  7. let () =
  8. Printf.printf "min %d %d %d -> %d" 0 1 2 (yoba_min 0 1 2)
Success #stdin #stdout 0s 4200KB
stdin
Standard input is empty
stdout
min 0 1 2 -> 1