diff options
author | Stephane Glondu <steph@glondu.net> | 2010-07-21 09:46:51 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2010-07-21 09:46:51 +0200 |
commit | 5b7eafd0f00a16d78f99a27f5c7d5a0de77dc7e6 (patch) | |
tree | 631ad791a7685edafeb1fb2e8faeedc8379318ae /lib/fset.mli | |
parent | da178a880e3ace820b41d38b191d3785b82991f5 (diff) |
Imported Upstream snapshot 8.3~beta0+13298
Diffstat (limited to 'lib/fset.mli')
-rw-r--r-- | lib/fset.mli | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/fset.mli b/lib/fset.mli new file mode 100644 index 00000000..b1751d0b --- /dev/null +++ b/lib/fset.mli @@ -0,0 +1,25 @@ +module Make : functor (X : Set.OrderedType) -> +sig + type elt = X.t + type t + +val empty : t +val is_empty : t -> bool +val mem : elt -> t -> bool +val add : elt -> t -> t +val singleton : elt -> t +val remove : elt -> t -> t +val union : t -> t -> t +val inter : t -> t -> t +val diff : t -> t -> t +val compare : t -> t -> int +val equal : t -> t -> bool +val subset : t -> t -> bool +val iter : ( elt -> unit) -> t -> unit +val fold : (elt -> 'b -> 'b) -> t -> 'b -> 'b +val cardinal : t -> int +val elements : t -> elt list +val min_elt : t -> elt +val max_elt : t -> elt +val choose : t -> elt +end |