From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id DF091BC48 for ; Thu, 31 Mar 2005 19:01:08 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2VH18AN012884 for ; Thu, 31 Mar 2005 19:01:08 +0200 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 TAA06756 for ; Thu, 31 Mar 2005 19:01:08 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2VH17GM014599 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 31 Mar 2005 19:01:08 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1DH32Z-0000lq-00 for ; Thu, 31 Mar 2005 18:01:07 +0100 Date: Thu, 31 Mar 2005 18:01:07 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] generic data type -> int function Message-ID: <20050331170106.GA2939@furbychan.cocan.org> References: <20050330222737.GA443@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at nez-perce with ID 424C2CD4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 424C2CD3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 arrays:01 hashtbl:01 notepad:01 wrote:01 integer:01 essentially:01 int:01 data:02 data:02 types:02 complex:04 complex:04 thu:05 marketing:93 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Thu, Mar 31, 2005 at 06:33:12AM -0800, Hal Daume III wrote: > I want to use complex data types as indices in arrays, essentially. How about using Hashtbl or Map with the key being the complex data type? Of course it won't be as fast an integer index into an Array, but it might be easier to understand. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com