Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
exception Found of int
|
||||
|
||||
let () =
|
||||
(* search the first number in a list greater than 50 *)
|
||||
try
|
||||
let nums = [36; 23; 44; 51; 28; 63; 17] in
|
||||
List.iter (fun v -> if v > 50 then raise(Found v)) nums;
|
||||
print_endline "nothing found"
|
||||
with Found res ->
|
||||
Printf.printf "found %d\n" res
|
||||
Loading…
Add table
Add a link
Reference in a new issue