]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/lib/cps.ml
the TypeError exception is back in place inside the Type modules
[helm.git] / helm / software / lambda-delta / lib / cps.ml
index 75f8bcd37fa330c9ba8ddf1f2a2ad494a9a9b96b..e42faba498aa4b0806e4264f0b0099d67f9f6e30 100644 (file)
@@ -9,7 +9,7 @@
      \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ *)
 
-let err () = assert false
+let err _ = assert false
 
 let start x = x
 
@@ -66,6 +66,10 @@ let rec list_fold_left2 f map a l1 l2 = match l1, l2 with
       map f a hd1 hd2
    | _                      -> assert false
 
+let list_iter2 f map l1 l2 =
+   let map f () x1 x2 = map f x1 x2 in
+   list_fold_left2 f map () l1 l2
+
 let rec list_mem ?(eq=(=)) a = function
    | []                   -> false
    | hd :: _ when eq a hd -> true