From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA16752; Sat, 24 Apr 2004 21:12:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA16187 for ; Sat, 24 Apr 2004 21:12:45 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3OJCgjq023287 for ; Sat, 24 Apr 2004 21:12:44 +0200 Received: from [192.168.1.200] (ppp119-113.lns1.syd2.internode.on.net [150.101.119.113]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i3OJCcZq009447; Sun, 25 Apr 2004 04:42:40 +0930 (CST) Subject: Re: [oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys] From: skaller Reply-To: skaller@users.sourceforge.net To: Basile STARYNKEVITCH Cc: caml-list In-Reply-To: <20040424064225.GA15568@ours.starynkevitch.net> References: <20040423200923.GA271@first.in-berlin.de> <1082775638.21205.687.camel@pelican.wigram> <20040424064225.GA15568@ours.starynkevitch.net> Content-Type: text/plain Message-Id: <1082833956.9537.61.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 25 Apr 2004 05:12:38 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; oliver:01 caml-list:01 hashtbl:01 sourceforge:01 2004:99 basile:01 camlcvs:01 cvsweb:01 stdlib:01 hashtbl:01 mli:01 1.35:01 val:01 counted:01 9660:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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