From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA31954; Wed, 29 Oct 2003 17:27:29 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA27149 for ; Wed, 29 Oct 2003 17:27:28 +0100 (MET) Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [217.110.154.194]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h9TGRR118242 for ; Wed, 29 Oct 2003 17:27:27 +0100 (MET) Received: from bik-gmbh.de ([192.168.125.193]) by grisu.bik-gmbh.de (8.12.8p2/8.12.8) with ESMTP id h9TGR9D5070157; Wed, 29 Oct 2003 17:27:13 +0100 (CET) (envelope-from hars@bik-gmbh.de) Message-ID: <3F9FEA56.3020509@bik-gmbh.de> Date: Wed, 29 Oct 2003 17:27:02 +0100 From: Florian Hars User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en-us, de-de, en MIME-Version: 1.0 To: Dustin Sallings CC: caml-list@inria.fr Subject: Re: [Caml-list] newbie type problem References: <087CB9D7-05FB-11D8-B1A2-000393DC8AE4@spy.net> <3F9F6AE6.9030102@bik-gmbh.de> <6BC5D6B8-09E6-11D8-B772-000393CFE6B8@spy.net> In-Reply-To: <6BC5D6B8-09E6-11D8-B772-000393CFE6B8@spy.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.6 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; florian:01 hars:01 hars:01 bik-gmbh:01 caml-list:01 newbie:01 textfile:01 val:01 val:01 florian:01 writes:01 ported:02 module:03 unit:03 unit:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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