caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: Nick Grey <nickgrey0112@farrand.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Streams.from
Date: Mon, 9 Dec 2002 23:14:57 +0100	[thread overview]
Message-ID: <15861.5601.937494.839811@lri.lri.fr> (raw)
In-Reply-To: <20021209190448.GB24560@farrand.net>


Nick Grey writes:
 > 
 > When a stream is created using Stream.from, is the function f garunteed
 > to be called with the stream count parameter 0, 1, 2, ...

No. For instance, repeated calls to Stream.peek will clearly call f
several times on the same count value (see the code in stdlib/stream.ml)

-- 
Jean-Christophe Filliâtre (http://www.lri.fr/~filliatr)

-------------------
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


  reply	other threads:[~2002-12-09 22:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-09 19:04 Nick Grey
2002-12-09 22:14 ` Jean-Christophe Filliatre [this message]
2002-12-09 23:54   ` Remi VANICAT
2002-12-10  0:00   ` Nick Grey
2002-12-10 12:29   ` Daniel de Rauglaudre

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=15861.5601.937494.839811@lri.lri.fr \
    --to=jean-christophe.filliatre@lri.fr \
    --cc=caml-list@inria.fr \
    --cc=nickgrey0112@farrand.net \
    /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).