Module Util.String


module String: sig .. end
Strings in a form suitable for use with Map and Hashtbl.

include Util.ComparedType
val prefix : string -> string -> bool
prefix s0 s1 holds if s0 is a prefix of s1.
val fold_left : ('a -> char -> 'a) -> 'a -> string -> 'a
fold f a "ijk...z" is f (... (f (f a 'i') 'j') ...) 'z'. Tail recursive.
val fold_right : (char -> 'a -> 'a) -> string -> 'a -> 'a
fold_right f "ijk...z" a is f 'i' (f 'j' (... (f 'z' a) ...)). Tail recursive.
val explode : string -> char list
explode "abc..." is ['a';'b';'c';...].
val implode : char list -> string
implode ['a';'b';'c';...] is "abc...".

Hosted by the SourceForge.net Logo* web site.
*Other names and brands may be claimed as the property of others.