]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/lib/cps.ml
- nodes count is now working for aut and meta
[helm.git] / helm / software / lambda-delta / lib / cps.ml
index 3875d88fab91461a4965aceb438f2a73af906c87..38b24903068c42a632c1f10e7002fcb16ebac653 100644 (file)
@@ -63,3 +63,8 @@ let rec list_fold_left2 f map a l1 l2 = match l1, l2 with
       let f a = list_fold_left2 f map a tl1 tl2 in
       map f a hd1 hd2
    | _                      -> assert false
+
+let rec list_mem ?(eq=(=)) a = function
+   | []                   -> false
+   | hd :: _ when eq a hd -> true
+   | _ :: tl              -> list_mem ~eq a tl