]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/extlib/hExtlib.ml
ng_disambiguation ng_kernel ng_refiner disambiguation: svn:ignore fixed
[helm.git] / helm / software / components / extlib / hExtlib.ml
index 3fe5c0a7d40762ba0340a82ddad0dc685ee1c44c..523913cbfcda4e6e2e501103d068d1462ff9232e 100644 (file)
@@ -239,14 +239,14 @@ let list_concat ?(sep = []) =
   aux []
   
 let rec list_findopt f l = 
-  let rec aux = function 
+  let rec aux = function 
     | [] -> None 
     | x::tl -> 
-        (match f x with
-        | None -> aux tl
+        (match f x with
+        | None -> aux (succ k) tl
         | Some _ as rc -> rc)
   in
-  aux l
+  aux l
 
 let split_nth n l =
   let rec aux acc n l =