Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2005-03-31 (17:01)
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.


Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology -
Team Notepad - intranets and extranets for business -