Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] [repost] Request for more String functions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: [Caml-list] [repost] Request for more String functions
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
'&lt;'.  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