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 MAA06157; Wed, 22 May 2002 12:06:31 +0200 (MET DST) 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 MAA06134 for ; Wed, 22 May 2002 12:06:30 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g4MA6T126403 for ; Wed, 22 May 2002 12:06:29 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id MAA01811 for caml-list@inria.fr; Wed, 22 May 2002 12:06:29 +0200 Date: Wed, 22 May 2002 12:06:29 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] Evaluation order of Stream.from Message-ID: <20020522120629.J1300@verdot.inria.fr> References: <20020521220938P.yoriyuki@mbg.sphere.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020521220938P.yoriyuki@mbg.sphere.ne.jp>; from yoriyuki@mbg.sphere.ne.jp on Tue, May 21, 2002 at 10:09:38PM +0900 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Tue, May 21, 2002 at 10:09:38PM +0900, YAMAGATA yoriyuki wrote: > I have a question about Stream.from. If I create a stream by > Stream.from f by some function f, in what order f is called? I mean, > is it guaranteed that f is always called as f 1, f 2, f 3, ....? or is > the order like f 1, f 3, f 5, f 7, f 2, f 4, .... possible? Yes, the order is guaranteed: in streams, to access the nth element, you must have accessed the first n-1 ones before. But the first element is f 0, not f 1. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- 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