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 LAA00720; Sat, 28 Sep 2002 11:30:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA00726 for ; Sat, 28 Sep 2002 11:30:52 +0200 (MET DST) Received: from cantina.students.cs.unibo.it (cantina.students.cs.unibo.it [130.136.3.110]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g8S9UpD09421 for ; Sat, 28 Sep 2002 11:30:52 +0200 (MET DST) Received: from lordsoth.takhisis.org ([130.136.33.14]) (authenticated bits=0) by cantina.students.cs.unibo.it (8.12.4/8.12.4/Debian-2) with ESMTP id g8S9UoV2015886 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Sat, 28 Sep 2002 11:30:51 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [127.0.0.1]) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-5) with ESMTP id g8S9Undq001994 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 28 Sep 2002 11:30:49 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-5) id g8S9Un4K001992 for caml-list@inria.fr; Sat, 28 Sep 2002 11:30:49 +0200 Date: Sat, 28 Sep 2002 11:30:49 +0200 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: [Caml-list] stdlib req - iter and fold on channels Message-ID: <20020928093049.GA1452@cs.unibo.it> Mail-Followup-To: caml-list@inria.fr References: <3D947045.9030009@hars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D947045.9030009@hars.de> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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? Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "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 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