From: james woodyatt <jhw@wetware.com>
To: Jon Harrop <jdh30@cam.ac.uk>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] Set
Date: Sun, 2 May 2004 09:57:24 -0700 [thread overview]
Message-ID: <C91A4708-9C59-11D8-8F7A-000A958FF2FE@wetware.com> (raw)
In-Reply-To: <200405020951.29626.jdh30@cam.ac.uk>
On 02 May 2004, at 01:51, Jon Harrop wrote:
>
> When the docs for Set say that it presents elements in an
> "unspecified" order
> to "fold" does it, in fact, always present them in increasing order?
A note: modules produced by the [Cf_rbtree.Set(E)] functor in my
recently released Cf library deliberately presents elements in an
indeterminate order, so as to minimize the amount of tree rotations
required for set operations constructed from [fold] and [filter].
If you want the elements in increasing or decreasing order, the
functions you want are [to_seq_incr] and [to_seq_decr] (or possibly
[to_list_incr] and [to_list_decr] if you know you're going to want all
of them).
--
j h woodyatt <jhw@wetware.com>
that's my village calling... no doubt, they want their idiot back.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2004-05-02 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-02 8:51 Jon Harrop
2004-05-02 10:23 ` Martin Jambon
2004-05-02 16:57 ` james woodyatt [this message]
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=C91A4708-9C59-11D8-8F7A-000A958FF2FE@wetware.com \
--to=jhw@wetware.com \
--cc=caml-list@inria.fr \
--cc=jdh30@cam.ac.uk \
/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