X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fcic_notation%2FcicNotationEnv.ml;h=f914b01d2ea57df51689ee1c5c76281dc8208cdb;hb=b9af9f1c0de6a1735b492f5c793a87a8fce218cc;hp=f7f11c46db4a2951f355acc9d169bce233a586bd;hpb=f7759f86b755f4f7dc2b23edd52ed4d2e5c028fe;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationEnv.ml b/helm/ocaml/cic_notation/cicNotationEnv.ml index f7f11c46d..f914b01d2 100644 --- a/helm/ocaml/cic_notation/cicNotationEnv.ml +++ b/helm/ocaml/cic_notation/cicNotationEnv.ml @@ -56,7 +56,10 @@ let lookup_value env name = snd (List.assoc name env) with Not_found -> raise (Value_not_found name) -let remove env name = List.remove_assoc name env +let remove_name env name = List.remove_assoc name env + +let remove_names env names = + List.filter (fun name, _ -> not (List.mem name names)) env let lookup_term env name = match lookup env name with