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 VAA03254; Fri, 20 Feb 2004 21:08:52 +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 VAA03698 for ; Fri, 20 Feb 2004 21:08:50 +0100 (MET) Received: from mail.cs.unm.edu (medio.cs.unm.edu [64.106.20.40]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1KK8nae006535 for ; Fri, 20 Feb 2004 21:08:50 +0100 Received: from clovis.cs.unm.edu ([64.106.21.112]) by mail.cs.unm.edu with esmtp (Exim 3.35 #1 (Debian)) id 1AuGwg-0001Zx-00 for ; Fri, 20 Feb 2004 13:08:22 -0700 Date: Fri, 20 Feb 2004 13:08:21 -0700 (MST) From: "William D. Neumann" To: caml-list@inria.fr Subject: Re: [Caml-list] [repost] Request for more String functions In-Reply-To: <20040220194449.GA15238@redhat.com> Message-ID: References: <20040220172813.GB8332@redhat.com> <20040220194449.GA15238@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanner: exiscan *1AuGwg-0001Zx-00*H2BjIvnLFoM* 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; caml-list:01 truncate:01 truncate:01 module:03 string:03 string:03 wrote:03 neumann:03 neumann:03 library:03 defaults:03 functions:05 functions:05 william:05 william:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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... William D. Neumann --- "Well I could be a genius, if I just put my mind to it. And I...I could do anything, if only I could get 'round to it. Oh we were brought up on the space-race, now they expect you to clean toilets. When you've seen how big the world is, how can you make do with this? If you want me, I'll be sleeping in - sleeping in throughout these glory days." -- Jarvis Cocker ------------------- 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