caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [repost] Request for more String functions
@ 2004-02-20 17:28 Richard Jones
  2004-02-20 19:34 ` Dustin Sallings
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Jones @ 2004-02-20 17:28 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-21  2:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 17:28 [Caml-list] [repost] Request for more String functions Richard Jones
2004-02-20 19:34 ` Dustin Sallings
2004-02-20 19:44   ` Richard Jones
2004-02-20 19:54     ` Shawn Wagner
2004-02-21  2:07       ` ChoJin
2004-02-20 20:08     ` William D. Neumann
2004-02-21  1:18       ` David Fox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).