Version française
Home     About     Download     Resources     Contact us    
Browse thread
generic data type -> int function
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] generic data type -> int function
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