The IO module could probably use the following function (or something
let to_stream f =
let stream_read _ =
try Some (read f)
with No_more_input -> None
What do you think?
Jere Sanisalo [xm@...] - http://www.xmunkki.org/
From: Nicolas Cannasse <warplayer@fr...> - 2004-07-10 15:04:55
> The IO module could probably use the following function (or something
> let to_stream f =
> let stream_read _ =
> try Some (read f)
> with No_more_input -> None
> Stream.from stream_read
> What do you think?
ExtLib have a more complete definition of a stream called enums, they are
actually iterators and more usable than streams that are mainly useful for
In general, we do not provide support for arrays (since DynArray is an
higher level replacement for it) and streams.
Get latest updates about Open Source Projects, Conferences and News.