diff options
| author | Alain Frisch <alain@frisch.fr> | 2010-11-05 08:15:36 +0000 |
|---|---|---|
| committer | Alain Frisch <alain@frisch.fr> | 2010-11-05 08:15:36 +0000 |
| commit | f537ba28b044ee7c4ea9d05e3934c9146e079cc1 (patch) | |
| tree | d9c06dc96b017ad80ebb38929b88f91ced9b0a9a /stdlib/stringLabels.mli | |
| parent | a5628ad72587ecef6e117b7436d49935638beab9 (diff) | |
| download | ocaml-f537ba28b044ee7c4ea9d05e3934c9146e079cc1.tar.gz | |
Adding String.iteri.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10762 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/stringLabels.mli')
| -rw-r--r-- | stdlib/stringLabels.mli | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stdlib/stringLabels.mli b/stdlib/stringLabels.mli index 9cbee708bb..d1a3966f57 100644 --- a/stdlib/stringLabels.mli +++ b/stdlib/stringLabels.mli @@ -84,6 +84,13 @@ val iter : f:(char -> unit) -> string -> unit the characters of [s]. It is equivalent to [f s.[0]; f s.[1]; ...; f s.[String.length s - 1]; ()]. *) +val iteri : f:(int -> char -> unit) -> string -> unit +(** Same as {!String.iter}, but the + function is applied to the index of the element as first argument (counting from 0), + and the character itself as second argument. + @since 3.13.0 +*) + val escaped : string -> string (** Return a copy of the argument, with special characters represented by escape sequences, following the lexical |
