]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/cicNotationEnv.ml
* various bug fix related to the environment returned when a match
[helm.git] / helm / ocaml / cic_notation / cicNotationEnv.ml
index f7f11c46db4a2951f355acc9d169bce233a586bd..f914b01d2ea57df51689ee1c5c76281dc8208cdb 100644 (file)
@@ -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