]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/cicNotationUtil.ml
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_notation / cicNotationUtil.ml
index 966e0262626b2e6a636ea374c50ed487bb13edea..887f5bf0564f1e1c20cbec279b91c46e0f0cbb81 100644 (file)
@@ -303,19 +303,16 @@ let dressn ~sep:sauces =
   in
     aux
 
-(* let find_appl_pattern_uris ap =
+let find_appl_pattern_uris ap =
   let rec aux acc =
     function
-    | Ast.UriPattern uri ->
-        (try
-          ignore (List.find (fun uri' -> UriManager.eq uri uri') acc);
-          acc
-        with Not_found -> uri :: acc)
+    | Ast.UriPattern uri -> uri :: acc
     | Ast.ImplicitPattern
     | Ast.VarPattern _ -> acc
     | Ast.ApplPattern apl -> List.fold_left aux acc apl
   in
-  aux [] ap *)
+  let uris = aux [] ap in
+  HExtlib.list_uniq (List.fast_sort UriManager.compare uris)
 
 let rec find_branch =
   function