Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2004-02-20 (17:28)
From: Richard Jones <rich@a...>
Subject: [Caml-list] [repost] Request for more String functions
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.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


----- End forwarded message -----

Richard Jones.
Merjis Ltd. - improving website return on investment
Perl4Caml lets you use any Perl library in your type-safe Objective
CAML programs.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: