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 SAA24129; Fri, 20 Feb 2004 18:28:16 +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 SAA27283 for ; Fri, 20 Feb 2004 18:28:14 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1KHSDae012217 for ; Fri, 20 Feb 2004 18:28:13 +0100 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AuERh-0002As-00 for ; Fri, 20 Feb 2004 17:28:13 +0000 Date: Fri, 20 Feb 2004 17:28:13 +0000 To: caml-list@inria.fr Subject: [Caml-list] [repost] Request for more String functions Message-ID: <20040220172813.GB8332@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Richard Jones 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 3.07:01 char:01 type-safe:01 ltd:98 caml:01 caml:01 forwarded:97 module:03 overhead:03 string:03 string:03 library:03 perl:03 perl:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk To: caml-list@inria.fr Subject: Request for more String functions It's great that the String module in 3.07 has a String.iter function. What would also be really useful would be: - String.iteri - String.map - String.mapi - String.fold_left - String.fold_right Another difficulty I find is doing search and replace on strings, in simple cases where the overhead of a regular expression probably isn't warranted. For example, escaping all '<' characters in a string with '<'. It would be nice to have a Search.char_replace function to do this. Rich. ----- End forwarded message ----- -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment Perl4Caml lets you use any Perl library in your type-safe Objective CAML programs. http://www.merjis.com/developers/perl4caml/ ------------------- 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