X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Flib%2Fcps.ml;h=75f8bcd37fa330c9ba8ddf1f2a2ad494a9a9b96b;hb=2dc6ec0db2156431948014a6498c9901f8759e39;hp=3875d88fab91461a4965aceb438f2a73af906c87;hpb=939f76e2fd4a50fd49c010a64e49b5625569d712;p=helm.git diff --git a/helm/software/lambda-delta/lib/cps.ml b/helm/software/lambda-delta/lib/cps.ml index 3875d88fa..75f8bcd37 100644 --- a/helm/software/lambda-delta/lib/cps.ml +++ b/helm/software/lambda-delta/lib/cps.ml @@ -9,6 +9,8 @@ \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) +let err () = assert false + let start x = x let id f x = f x @@ -63,3 +65,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