Core.String Module (F#)
Functional programming operators for string processing. Further string operations are available via the member functions on strings and other functionality in String and Regex types.
Namespace/Module Path: Microsoft.FSharp.Core
Assembly: FSharp.Core (in FSharp.Core.dll)
module String
Values
Value |
Description |
---|---|
collect : (char -> string) -> string -> string |
Creates a new string whose characters are the results of applying a specified function to each of the characters of the input string and concatenating the resulting strings. |
concat : string -> seq<string> -> string |
Returns a new string made by concatenating the given strings with a separator. |
exists : (char -> bool) -> string -> bool |
Tests if any character of the string satisfies the given predicate. |
forall : (char -> bool) -> string -> bool |
Tests if all characters in the string satisfy the given predicate. |
init : int -> (int -> string) -> string |
Creates a new string whose characters are the results of applying a specified function to each index and concatenating the resulting strings. |
iter : (char -> unit) -> string -> unit |
Applies a specified function to each character in the string. |
iteri : (int -> char -> unit) -> string -> unit |
Applies a specified function to the index of each character in the string and the character itself. |
length : string -> int |
Returns the length of the string. |
map : (char -> char) -> string -> string |
Creates a new string whose characters are the results of applying a specified function to each of the characters of the input string. |
mapi : (int -> char -> char) -> string -> string |
Creates a new string whose characters are the results of applying a specified function to each character and index of the input string. |
replicate : int -> string -> string |
Returns a string by concatenating a specified number of instances of a string. |
Platforms
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Version Information
F# Core Library Versions
Supported in: 2.0, 4.0, Portable