From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 7B0F0BC0B for ; Tue, 16 Jan 2007 06:18:54 +0100 (CET) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0G5IrH3023884 for ; Tue, 16 Jan 2007 06:18:54 +0100 Received: by wr-out-0506.google.com with SMTP id 67so1348502wri for ; Mon, 15 Jan 2007 21:18:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=TeuLcFRztPMo5DOzYh1u+JuuDSvF+XEsvfgXtjRep2oIokP2Y47f3F44yE1B4AXIDZSsQd4y6j8DQHwHVJiOtiwWlviEgPROn8tVuyPVNhlPbg7Fs+PWbaYEfuChVSp33F4W7gACEBjZGLSJcGxwBgY+JeHsBquf21sSwxVTfhU= Received: by 10.65.54.9 with SMTP id g9mr6945672qbk.1168924732485; Mon, 15 Jan 2007 21:18:52 -0800 (PST) Received: from ?192.168.0.18? ( [69.155.31.57]) by mx.google.com with ESMTP id e14sm7219041qba.2007.01.15.21.18.51; Mon, 15 Jan 2007 21:18:52 -0800 (PST) Message-ID: <45AC6039.8020805@gmail.com> Date: Mon, 15 Jan 2007 23:18:49 -0600 From: Edgar Friendly User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: Jon Harrop Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Ocaml compiler features References: <45A87011.8080203@gmail.com> <20070115221717.GA9982@snarc.org> <1168910291.9207.62.camel@rosella.wigram> <200701160211.02613.jon@ffconsultancy.com> In-Reply-To: <200701160211.02613.jon@ffconsultancy.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-j-chkmail-Score: MSGID : 45AC603D.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45AC603D.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 compiler:01 syntax:01 stdlib:01 recursive:01 stdlib:01 edgar:98 wrote:01 parameterize:01 caml-list:01 functions:01 functions:01 tail:01 bytes:03 cons:03 Jon Harrop wrote: > We really want a File.fold function to fold over the lines of the file, and a > cons function: > > File.fold cons ch [] > While we're at it, why not parameterize the splitting mechanism: one fold for token-based folding (each \n or other separator), and a second fold for record-based folding (every n bytes). > I have a much bigger wish list for functions than I do for syntax. I'd like > the stdlib functions to be tail recursive, more comprehensive and faster... > Should we start another thread to put improved/needed stdlib functions? I imagine some discussion (and postings of code) related to this matter could be productive. E.