Version française
Home     About     Download     Resources     Contact us    
Browse thread
Sparse structure
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris King <colanderman@g...>
Subject: Re: [Caml-list] Sparse structure
On 7/7/05, Jacques Garrigue <garrigue@math.nagoya-u.ac.jp> wrote:
> module Int = struct type t = int let compare : int -> int -> int = compare end
> module M = Map.Make(Int)
> type +'a elt
> type 'a map = 'a elt M.t

Thanks, that works great!  I'm curious though, what is the purpose of
the elt type?  Is it to enforce the use of the map type instead of
M.t?

- Chris