caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Juergen Pfitzenmaier <pfitzen@informatik.uni-tuebingen.de>
To: undisclosed-recipients:;
Date: Tue, 6 Mar 2001 23:08:03 +0100 (MET)	[thread overview]
Message-ID: <200103062208.XAA13315@sunstroke.informatik.uni-tuebingen.de> (raw)

Olivier Andrieu wanted to build a Set of functional values but had problems
with the comparison of these values.

One solution would be to have a Set of pairs. The first element would be a
functional value and the second something of a simple type (like integer).
Then you define your comparison function only to use this second element.
The only inconvenience is that you have always to select explicitly the first
element of such pairs to get the functional value; but you can hide this
inside a module build around Set.
hope this is of some help

pfitzen

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


         reply	other threads:[~2001-03-06 22:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-06 21:51 [Caml-list] Comparison of functional values Olivier Andrieu
2001-03-07  5:20 ` Alan Schmitt
2001-03-06 22:08   ` Juergen Pfitzenmaier [this message]
2001-03-07  8:49     ` Olivier Andrieu
2001-03-07  8:56       ` Xavier Leroy

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=200103062208.XAA13315@sunstroke.informatik.uni-tuebingen.de \
    --to=pfitzen@informatik.uni-tuebingen.de \
    /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;
as well as URLs for NNTP newsgroup(s).