On Thu, Sep 10, 2009 at 5:00 PM, Will M Farr <farr@mit.edu> wrote:
Hello,
I recently encountered a situation where I had (effectively) the following polymorphic type:
type 'a record = { id : int; data : 'a }
and the following compare function
let compare {id = id1} {id = id2} = Pervasives.compare id1 id2
and wanted to put such records into a set. However, I could not figure out how to make the polymorphic 'a in the type definition "disappear" in the module argument to the Set.Make functor.