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 CAA13152; Sat, 21 Feb 2004 02:18:11 +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 CAA11144 for ; Sat, 21 Feb 2004 02:18:08 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mail.lindows.com (mail.lindows.com [130.94.123.204]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1L1I7ae010839 for ; Sat, 21 Feb 2004 02:18:07 +0100 Received: from lindows.com (wbar1.lax1-4-8-197-110.dsl-verizon.net [4.8.197.110]) by mail.lindows.com (Postfix) with ESMTP id 8DAA71D15D4; Fri, 20 Feb 2004 17:17:12 -0800 (PST) Message-ID: <4036B1CD.8080008@lindows.com> Date: Fri, 20 Feb 2004 17:18:05 -0800 From: David Fox User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20040113 Debian/1.5-2.0.0.lindows0.0.52.45+0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "William D. Neumann" Cc: caml-list@inria.fr Subject: Re: [Caml-list] [repost] Request for more String functions References: <20040220172813.GB8332@redhat.com> <20040220194449.GA15238@redhat.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------010300040004050806010507" X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; lindows:01 caml-list:01 truncate:01 truncate:01 module:03 module:03 string:03 string:03 wrote:03 wrote:03 neumann:03 neumann:03 library:03 library:03 defaults:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. --------------010300040004050806010507 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit William D. Neumann wrote: >On Fri, 20 Feb 2004, Richard Jones wrote: > > > >>String.truncate - truncate a string to a given length >> >> > >I call my version procrustes, because it will also pad a string that is >too short with an optional padding character (defaults to ' '). In any case, >it would be great to see some of these functions added to the standard >library so I wouldn't have to tote around my Wdn module... > > The Scheme standard calls these functions "take" (take the first n elements) and "drop" (drop the first n elements.) I don't think it padded them. --------------010300040004050806010507 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

William D. Neumann wrote:
On Fri, 20 Feb 2004, Richard Jones wrote:

  
String.truncate  - truncate a string to a given length
    

I call my version procrustes, because it will also pad a string that is
too short with an optional padding character (defaults to ' ').  In any case,
it would be great to see some of these functions added to the standard
library so I wouldn't have to tote around my Wdn module...
  
The Scheme standard calls these functions "take" (take the first n elements) and
"drop" (drop the first n elements.)  I don't think it padded them.
--------------010300040004050806010507-- ------------------- 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