From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id D98C1BC88 for ; Thu, 10 Feb 2005 11:09:22 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1AA9M2R017039 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 10 Feb 2005 11:09:22 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1CzBG7-0002Lx-00; Thu, 10 Feb 2005 10:09:15 +0000 Date: Thu, 10 Feb 2005 10:09:15 +0000 To: Juancarlo A?ez Cc: caml-list@yquem.inria.fr, ocaml-lib-devel@lists.sourceforge.net Subject: Re: [Caml-list] String to list to string Message-ID: <20050210100915.GA7508@furbychan.cocan.org> References: <200502070224.23304.jon@jdh30.plus.com> <420ac293.30127b31.1fa8.0b02@smtp.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <420ac293.30127b31.1fa8.0b02@smtp.gmail.com> User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at nez-perce with ID 420B32D2.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 sourceforge:01 binary:01 notepad:01 faq:01 faq:01 strings:01 strings:01 functions:01 functions:01 caml:02 debian:02 string:03 string:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Wed, Feb 09, 2005 at 10:10:03PM -0400, Juancarlo A?ez wrote: > > Why aren't there functions in the standard library to convert strings to > lists of characters and back? As others have said, these functions are not in the standard library. However, useful functions like these[1] are available in Extlib, which you can find here: http://sourceforge.net/projects/ocaml-lib/ and is also available as a binary package for various platforms such as Debian. It contains important functions such as String.map, String.replace_chars, String.slice, String.starts_with, String.ends_with, and many more. Rich. [1] Although embarrassingly, it appears, not these exact functions, which is why I've CC'd to ocaml-lib-devel list. To ocaml-lib-devel: we should provide implementations of http://caml.inria.fr/FAQ/FAQ_EXPERT-eng.html#strings -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com