Browse thread
[Caml-list] Different types of streams
-
Nicolas George
-
Daniel de Rauglaudre
- Christian RINDERKNECHT
-
Nicolas George
- Daniel de Rauglaudre
-
Daniel de Rauglaudre
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2001-08-28 (08:20) |
From: | Daniel de Rauglaudre <daniel.de_rauglaudre@i...> |
Subject: | Re: [Caml-list] Different types of streams |
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