let (//) = Filename.concat
let is_directory d = try Sys.is_directory d with Sys_error _ -> false
+let unique = let i = ref 0 in fun () -> incr i; !i
+
(* From OCaml 4.08 sources. We can remove this when we can
* depend on min OCaml 4.08.
*)
val is_directory : string -> bool
(** Return true iff parameter is a directory. *)
+val unique : unit -> int
+(** Returns a unique number each time called. *)
+
val filter_map : ('a -> 'b option) -> 'a list -> 'b list
(** [filter_map f l] applies [f] to every element of [l], filters
out the [None] elements and returns the list of the arguments of