Browse thread
[oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys]
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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,
> http://camlcvs.inria.fr/cgi-bin/cvsweb.cgi/ocaml/stdlib/hashtbl.mli?rev=1.35&content-type=text/x-cvsweb-markup
> 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
function!
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners