]> matita.cs.unibo.it Git - fireball-separation.git/blobdiff - ocaml/util.ml
new_arity = old_arity + 1
[fireball-separation.git] / ocaml / util.ml
index a4af2dd2b01d4532657e5c2249c571a7f989be23..a87b96f920c199bfcf1fd75fdd114b5f992ae8e9 100644 (file)
@@ -14,6 +14,11 @@ let option_map f = function
  | Some x -> Some (f x)
 ;;
 
+let option_get = function
+ | Some x -> x
+ | None -> failwith "option_get: None"
+;;
+
 let rec find_opt f =
  function
     [] -> None