From: Eric Dujardin <dujardin@naima.inria.fr>
To: caml-list@margaux.inria.fr
Cc: dujardin@naima.inria.fr
Subject: using sets
Date: Mon, 28 Mar 1994 14:37:54 +0200 [thread overview]
Message-ID: <199403281237.AA12519@naima.inria.fr> (raw)
Hello,
I have defined the following type :
type Lien = {A_lien : Noeud ref ; B_lien :Noeud ref };;
and now I would like to use sets of "Liens". The trouble is that I
don't know how to define a total order over references, to create the
set with the "empty" function. I do not want to compare the values of
the "Noeud" instances, as two distinct instances could have the same
value. I could add an explicit "Identifier" field to my "Noeud"
instances, but it seems that a "magic" function, that would for
example take any reference as parameter and return an integer, would
be more efficient. However, I have no idea how it could be written...
Thanks for any help,
Eric
next reply other threads:[~1994-03-28 17:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-03-28 12:37 Eric Dujardin [this message]
1994-03-28 21:50 ` Xavier Leroy
1994-03-28 17:41 Pierre Weis
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=199403281237.AA12519@naima.inria.fr \
--to=dujardin@naima.inria.fr \
--cc=caml-list@margaux.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