diff options
author | Stephane Glondu <steph@glondu.net> | 2010-07-21 09:48:05 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2010-07-21 09:48:05 +0200 |
commit | bbb5e6eb84a46c7e8041e05ab0059994fa0b1a25 (patch) | |
tree | 7d2930678b27e520c9431739c3d1af9d6475ccd1 /lib/fset.mli | |
parent | 7a998985060742038ba6d2664d159ff2dbcdec3d (diff) | |
parent | 5b7eafd0f00a16d78f99a27f5c7d5a0de77dc7e6 (diff) |
Merge branch 'experimental/upstream' into experimental/master
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 |