]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/extlib/hExtlib.mli
Huge reorganization of matita and ocaml.
[helm.git] / helm / ocaml / extlib / hExtlib.mli
index 6416afcaf3400cceab6daa7f27606a4c78b816ad..aed9b240693cdd4a9621984ddec60d1bbc4356b6 100644 (file)
@@ -72,6 +72,7 @@ val list_uniq:
   ?eq:('a->'a->bool) -> 'a list -> 'a list (** uniq unix filter on lists *)
 val filter_map: ('a -> 'b option) -> 'a list -> 'b list (** filter + map *)
 val list_concat: ?sep:'a list -> 'a list list -> 'a list (**String.concat-like*)
+val list_findopt: ('a -> 'b option) -> 'a list -> 'b option
 
 (** {2 Debugging & Profiling} *)
 
@@ -87,5 +88,8 @@ val set_profiling_printings : (unit -> bool) -> unit
 exception Localized of Token.flocation * exn
 
 val loc_of_floc: Token.flocation -> int * int
+val floc_of_loc: int * int -> Token.flocation
+
+val dummy_floc: Lexing.position * Lexing.position
 
 val raise_localized_exception: offset:int -> Token.flocation -> exn -> 'a