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 KAA02956; Tue, 28 Aug 2001 10:20:01 +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 KAA02866 for ; Tue, 28 Aug 2001 10:20:01 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7S8K0D26049 for ; Tue, 28 Aug 2001 10:20:00 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id KAA25613 for caml-list@inria.fr; Tue, 28 Aug 2001 10:20:00 +0200 Date: Tue, 28 Aug 2001 10:20:00 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] Different types of streams Message-ID: <20010828102000.G25302@verdot.inria.fr> References: <20010826202317.A9010@aimlin> <20010827114906.K13152@verdot.inria.fr> <20010827194736.A1965@aimlin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010827194736.A1965@aimlin>; from nicolas.george@ens.fr on Mon, Aug 27, 2001 at 07:47:36PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Mon, Aug 27, 2001 at 07:47:36PM +0200, Nicolas George wrote: > I was thinking to streams not used as input for a parser, but as generic > data channel: a dumb sequence of values passed from one function to > another. Like some sort of list, but with fast concatenation and optionnal > lazy evaluation. In this case, if you don't use parsers, it is not necessary to use the streams of the Stream library. Why not define your own streams? type 'a stream = Nil | Cons of 'a Lazy.t * 'a stream Lazy.t | App of 'a stream Lazy.t * 'a stream Lazy.t -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr