How to create the IntSet type with core?

Francois Berenger francois.berenger.working at gmail.com
Fri Nov 9 08:14:42 GMT 2012


Hello,

I'm converting some standard code to use core.

How do I do this in core:

module IntSet =
  Set.Make
    (struct
      let compare = Pervasives.compare
      type t = int
    end)

Thanks a lot,
F.

PS: yes, I opened Core.Std and did not die from it. ;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/core/attachments/20121109/a67b53ee/attachment.html>


More information about the core mailing list