added length to Hashtbl.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6168 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Basile Starynkevitch 2004-03-23 12:37:46 +00:00
parent 2c8fe3ae6b
commit 326f61bb36
1 changed files with 2 additions and 0 deletions

View File

@ -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