From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA15565; Mon, 9 Dec 2002 23:22:27 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA15318 for ; Mon, 9 Dec 2002 23:22:27 +0100 (MET) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gB9MMQX15266 for ; Mon, 9 Dec 2002 23:22:26 +0100 (MET) Received: from pc8-123 (mail@pc8-123 [129.175.8.123]) by lri.lri.fr (8.11.6/jtpda-5.3.2) with ESMTP id gB9MExR15102 ; Mon, 9 Dec 2002 23:14:59 +0100 (MET) Received: from filliatr by pc8-123 with local (Exim 3.35 #1 (Debian)) id 18LWB0-0003TD-00; Mon, 09 Dec 2002 23:14:58 +0100 From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <15861.5601.937494.839811@lri.lri.fr> Date: Mon, 9 Dec 2002 23:14:57 +0100 To: Nick Grey Cc: caml-list@inria.fr Subject: Re: [Caml-list] Streams.from In-Reply-To: <20021209190448.GB24560@farrand.net> References: <20021209190448.GB24560@farrand.net> X-Mailer: VM 6.93 under Emacs 20.7.2 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) X-MailScanner: Found to be clean Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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