Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] (Sorry for my last post) lazyness, exceptions?, ocaml syntax rule-of-thumbs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-28 (09:30)
From: Stefano Zacchiroli <zack@c...>
Subject: [Caml-list] stdlib req - iter and fold on channels
On Fri, Sep 27, 2002 at 04:50:45PM +0200, Florian Hars wrote:
> For processing files a line at a time, I once decided to write a module
> Textfile with the two methods
> val iter : (string -> unit) -> in_channel -> unit
> val fold : ('a -> string -> 'a) -> 'a -> in_channel -> 'a

I wrote down the same module some time ago and probably many other ocaml
programmers had done the same in the past.
What about adding these function to the standard library?


Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy | ICQ# 33538863 |
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: