How to create the IntSet type with core?
Malcolm Matalka
mmatalka at gmail.com
Fri Nov 9 09:09:47 GMT 2012
The Int module probably already has a Set module in it. So Int.Set.
All modules generally contain what they are capable of in it. So String
has a Map module, etc.
Francois Berenger <francois.berenger.working at gmail.com> writes:
> 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. ;)
More information about the core
mailing list