diff options
author | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2004-06-18 05:04:14 +0000 |
---|---|---|
committer | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2004-06-18 05:04:14 +0000 |
commit | 5e1bf20850aaa9b1ceb86a971848609ee9e84c47 (patch) | |
tree | f3a6e5b5c38263fe527e6275ff95425f12637226 /stdlib/moreLabels.mli | |
parent | 8ec769214e067da9ee8b33d05f4ef275e9269dd5 (diff) | |
download | ocaml-gcaml.tar.gz |
port to the latest ocaml (2004/06/18)gcaml
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml@6419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/moreLabels.mli')
-rw-r--r-- | stdlib/moreLabels.mli | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/stdlib/moreLabels.mli b/stdlib/moreLabels.mli index 6a690470cb..fbf848cba8 100644 --- a/stdlib/moreLabels.mli +++ b/stdlib/moreLabels.mli @@ -38,6 +38,7 @@ module Hashtbl : sig val fold : f:(key:'a -> data:'b -> 'c -> 'c) -> ('a, 'b) t -> init:'c -> 'c + val length : ('a, 'b) t -> int module type HashedType = Hashtbl.HashedType module type S = sig @@ -56,6 +57,7 @@ module Hashtbl : sig val fold : f:(key:key -> data:'a -> 'b -> 'b) -> 'a t -> init:'b -> 'b + val length : 'a t -> int end module Make : functor (H : HashedType) -> S with type key = H.t val hash : 'a -> int @@ -70,6 +72,7 @@ module Map : sig type key and (+'a) t val empty : 'a t + val is_empty: 'a t -> bool val add : key:key -> data:'a -> 'a t -> 'a t val find : key -> 'a t -> 'a val remove : key -> 'a t -> 'a t @@ -80,7 +83,9 @@ module Map : sig val fold : f:(key:key -> data:'a -> 'b -> 'b) -> 'a t -> init:'b -> 'b - end + val compare: cmp:('a -> 'a -> int) -> 'a t -> 'a t -> int + val equal: cmp:('a -> 'a -> bool) -> 'a t -> 'a t -> bool + end module Make : functor (Ord : OrderedType) -> S with type key = Ord.t end @@ -113,6 +118,7 @@ module Set : sig val min_elt : t -> elt val max_elt : t -> elt val choose : t -> elt + val split: elt -> t -> t * bool * t end module Make : functor (Ord : OrderedType) -> S with type elt = Ord.t end |