Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys]
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys]
On Sat, 2004-04-24 at 16:42, Basile STARYNKEVITCH wrote:

> In the CVS of Ocaml,
>  Hashtbl does have a 
> val length : ('a, 'b) t -> int
> (** [Hashtbl.length tbl] returns the number of bindings in [tbl].
>    Multiple bindings are counted multiply, so [Hashtbl.length]
>    gives the number of times [Hashtbl.iter] calls it first argument. *)
> which I suppose you would have wanted to be  Hashtbl.size 

The name 'length' agrees with other Ocaml libraries.

I didn't notice this was added: I use CVS Ocaml 
-- and am willing to demand my clients do too at the moment --
and missed that this has been added. 

Thanks for this info -- and thanks for adding this

John Skaller,
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: