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] newbie type problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-10-29 (16:27)
From: Florian Hars <hars@b...>
Subject: Re: [Caml-list] newbie type problem
Dustin Sallings wrote:
>     What is Textfile?  I wrote something very similar to what I think 
> this is in scheme (from which this thing is being ported somewhat slowly):
> ; Loop on input, pass each line to function f.

Yes, it is one of those module everybody writes. My version contains functions

val iter : (string -> unit) -> in_channel -> unit
val fold : ('a -> string -> 'a) -> 'a -> in_channel -> 'a

doing the obvious things with the lines read from the in_channel.

Yours, Florian.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: