diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-02-26 13:30:26 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-02-26 13:30:26 +0000 |
commit | 54467b98f528f1f908f63b859447d9fc97775cfe (patch) | |
tree | ed195d3ba9e734d4105df6acd2846b5dd4f24698 /stdlib/hashtbl.mli | |
parent | ef938a78783d07d4c19cf55de1d7e72bd1f00900 (diff) | |
download | ocaml-54467b98f528f1f908f63b859447d9fc97775cfe.tar.gz |
ajout du label size: pour Hashtbl.create et Buffer.create
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2870 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/hashtbl.mli')
-rw-r--r-- | stdlib/hashtbl.mli | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/hashtbl.mli b/stdlib/hashtbl.mli index ad8e6b9e11..9364edac95 100644 --- a/stdlib/hashtbl.mli +++ b/stdlib/hashtbl.mli @@ -21,7 +21,7 @@ type ('a, 'b) t (* The type of hash tables from type ['a] to type ['b]. *) -val create : int -> ('a,'b) t +val create : size:int -> ('a,'b) t (* [Hashtbl.create n] creates a new, empty hash table, with initial size [n]. For best results, [n] should be on the order of the expected number of elements that will be in @@ -88,7 +88,7 @@ module type S = sig type key type 'a t - val create: int -> 'a t + val create: size:int -> 'a t val clear: 'a t -> unit val add: 'a t -> key:key -> data:'a -> unit val remove: 'a t -> key:key -> unit |