From: Jon Harrop <jon@jdh30.plus.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to use Set Datatype
Date: Sat, 11 Dec 2004 01:33:13 +0000 [thread overview]
Message-ID: <200412110133.13394.jon@jdh30.plus.com> (raw)
In-Reply-To: <200412102044.39846.micha-1@fantasymail.de>
On Friday 10 December 2004 19:44, Micha wrote:
> module StringSet = Set.Make (struct type t = string let compare = compare
> end);;
As the "String" module implements both a type "t" and a "compare" function,
you can just write:
# module StringSet = Set.Make(String);;
...
Cheers,
Jon.
next prev parent reply other threads:[~2004-12-11 1:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-10 18:37 Jan Stamer
2004-12-10 19:44 ` [Caml-list] " Micha
2004-12-11 1:33 ` Jon Harrop [this message]
2004-12-11 21:12 ` Brian Hurt
2004-12-12 0:05 ` skaller
2004-12-12 2:46 ` William Lovas
2004-12-12 3:09 ` Brian Hurt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200412110133.13394.jon@jdh30.plus.com \
--to=jon@jdh30.plus.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox