Module Fpath.Set

Path sets.

Path sets

include Stdlib.Set.S with type Set.elt := t
type t
val empty : t
val is_empty : t -> bool
val mem : t -> t -> bool
val add : t -> t -> t
val singleton : t -> t
val remove : t -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val disjoint : t -> t -> bool
val diff : t -> t -> t
val compare : t -> t -> int
val equal : t -> t -> bool
val subset : t -> t -> bool
val iter : (t -> unit) -> t -> unit
val map : (t -> t) -> t -> t
val fold : (t -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (t -> bool) -> t -> bool
val exists : (t -> bool) -> t -> bool
val filter : (t -> bool) -> t -> t
val partition : (t -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> t list
val min_elt : t -> t
val min_elt_opt : t -> t option
val max_elt : t -> t
val max_elt_opt : t -> t option
val choose : t -> t
val choose_opt : t -> t option
val split : t -> t -> t * bool * t
val find : t -> t -> t
val find_opt : t -> t -> t option
val find_first : (t -> bool) -> t -> t
val find_first_opt : (t -> bool) -> t -> t option
val find_last : (t -> bool) -> t -> t
val find_last_opt : (t -> bool) -> t -> t option
val of_list : t list -> t
val to_seq_from : t -> t -> t Stdlib.Seq.t
val to_seq : t -> t Stdlib.Seq.t
val add_seq : t Stdlib.Seq.t -> t -> t
val of_seq : t Stdlib.Seq.t -> t
type elt = path
val pp : ?⁠sep:unit Fmt.t -> path Fmt.t -> t Fmt.t

pp ~sep pp_elt ppf ss formats the elements of ss on ppf. Each element is formatted with pp_elt and elements are separated by ~sep (defaults to Format.pp_print_cut). If the set is empty leaves ppf untouched.

val pp_set : t Fmt.t

pp_set ppf ss prints an unspecified set-like representation of ss on ppf using Fpath.pp.

val pp_dump : t Fmt.t

pp_dump ppf ss prints an unspecified representation of ss on ppf with Fpath.pp_dump.