From: Richard Jones <rich@annexia.org>
To: caml-list@inria.fr
Subject: [Caml-list] [repost] Request for more String functions
Date: Fri, 20 Feb 2004 17:28:13 +0000 [thread overview]
Message-ID: <20040220172813.GB8332@redhat.com> (raw)
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
next reply other threads:[~2004-02-20 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-20 17:28 Richard Jones [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040220172813.GB8332@redhat.com \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox