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 KAA18613; Wed, 21 Apr 2004 10:39:59 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA18570 for ; Wed, 21 Apr 2004 10:39:58 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3L8drYM026825 for ; Wed, 21 Apr 2004 10:39:56 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BGDGl-0003An-00 for ; Wed, 21 Apr 2004 09:39:47 +0100 Date: Wed, 21 Apr 2004 09:39:47 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys Message-ID: <20040421083947.GA12153@redhat.com> References: <20040421011904.GA1411@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040421011904.GA1411@first.in-berlin.de> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hashtbl:01 2004:99 oliver:01 bandel:01 hash:01 crm:99 consultancy:99 ltd:98 0200,:01 ought:01 wrote:03 library:03 btw:03 functions:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Apr 21, 2004 at 03:19:04AM +0200, Oliver Bandel wrote: > I think a good addition to the Hashtbl-module > would be a function, that gives back a list of keys > that are in the hash. And also a 'values' function which returns all the values. Both functions, BTW, are easily written using the Hashtbl's fold function; but they ought to be part of the standard library. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment http://www.winwinsales.co.uk/ - CRM improvement consultancy ------------------- 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