Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners