X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fextlib%2FhExtlib.ml;h=b7b664ff24da5a9436d1571325c6cb8796de6b6e;hb=3df31c02806eca83c63c14e6a89844f764c3e2cb;hp=5761010531eca5fe6a0b40c57eee94c0d2a8daa7;hpb=e2718488c73b2cdf20b26af46e80a11b91fac220;p=helm.git diff --git a/matita/components/extlib/hExtlib.ml b/matita/components/extlib/hExtlib.ml index 576101053..b7b664ff2 100644 --- a/matita/components/extlib/hExtlib.ml +++ b/matita/components/extlib/hExtlib.ml @@ -302,7 +302,7 @@ let list_iter_sep ~sep f = in aux -let rec list_findopt f l = +let list_findopt f l = let rec aux k = function | [] -> None | x::tl -> @@ -316,13 +316,13 @@ let split_nth n l = let rec aux acc n l = match n, l with | 0, _ -> List.rev acc, l - | n, [] -> raise (Failure "HExtlib.split_nth") + | _, [] -> raise (Failure "HExtlib.split_nth") | n, hd :: tl -> aux (hd :: acc) (n - 1) tl in aux [] n l let list_last l = let l = List.rev l in - try List.hd l with exn -> raise (Failure "HExtlib.list_last") + try List.hd l with _ -> raise (Failure "HExtlib.list_last") ;; let rec list_assoc_all a = function