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 MAA04972; Tue, 23 Dec 2003 12:01:44 +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 MAA04595 for ; Tue, 23 Dec 2003 12:01:42 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hBNB1eb20679 for ; Tue, 23 Dec 2003 12:01:41 +0100 (MET) Received: from [192.168.1.50] (dustinti.west.spy.net [192.168.1.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client did not present a certificate) by bob.west.spy.net (Postfix) with ESMTP id 057075AE0; Tue, 23 Dec 2003 03:01:35 -0800 (PST) In-Reply-To: <3FE8183F.90205@trusted-logic.fr> References: <1072152186.59938.30.camel@tylere> <3FE8183F.90205@trusted-logic.fr> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5DA31570-3537-11D8-A8F7-000393CB0F1E@spy.net> Content-Transfer-Encoding: 7bit Cc: Tyler Eaves , caml-list@inria.fr From: Dustin Sallings Subject: Re: [Caml-list] Frustrated Beginner Date: Tue, 23 Dec 2003 03:01:31 -0800 To: Samuel Lacas X-Mailer: Apple Mail (2.609) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 samuel:01 lacas:01 pleac:01 sourceforge:01 pleac:01 cae:99 ocaml:01 rec:01 her:97 wrote:03 recursive:03 suppose:03 tail:03 let:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Dec 23, 2003, at 2:26, Samuel Lacas wrote: > May be > > http://pleac.sourceforge.net/pleac_ocaml.html > > may help you here. Interesting, this has the same problem I had when I tried to create fold_lines: let rec fold_lines f init chan = try let line = input_line chan in fold_lines f (f init line) chan with End_of_file -> init That ends up not being tail recursive. I suppose I should get on the list and try to make some suggestions. -- SPY My girlfriend asked me which one I like better. pub 1024/3CAE01D5 1994/11/03 Dustin Sallings | Key fingerprint = 87 02 57 08 02 D0 DA D6 C8 0F 3E 65 51 98 D8 BE L_______________________ I hope the answer won't upset her. ____________ ------------------- 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