See More

// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.FSharp.Core open System open Microsoft.FSharp.Core open Microsoft.FSharp.Core.Operators open Microsoft.FSharp.Collections ///

Functional programming operators for string processing. Further string operations /// are available via the member functions on strings and other functionality in /// System.String /// and System.Text.RegularExpressions types. [] [] module String = /// Returns a new string made by concatenating the given strings /// with separator sep, that is a1 + sep + ... + sep + aN. /// The separator string to be inserted between the strings /// of the input sequence. /// The sequence of strings to be concatenated. /// A new string consisting of the concatenated strings separated by /// the separation string. /// Thrown when strings is null. [] val concat: sep:string -> strings: seq -> string /// Applies the function action to each character in the string. /// The function to be applied to each character of the string. /// The input string. [] val iter: action:(char -> unit) -> str:string -> unit /// Applies the function action to the index of each character in the string and the /// character itself. /// The function to apply to each character and index of the string. /// The input string. [] val iteri: action:(int -> char -> unit) -> str:string -> unit /// Builds a new string whose characters are the results of applying the function mapping /// to each of the characters of the input string. /// The function to apply to the characters of the string. /// The input string. /// The resulting string. [] val map: mapping:(char -> char) -> str:string -> string /// Builds a new string whose characters are the results of applying the function mapping /// to each character and index of the input string. /// The function to apply to each character and index of the string. /// The input string. /// The resulting string. [] val mapi: mapping:(int -> char -> char) -> str:string -> string /// Builds a new string whose characters are the results of applying the function mapping /// to each of the characters of the input string and concatenating the resulting /// strings. /// The function to produce a string from each character of the input string. /// The input string. /// The concatenated string. [] val collect: mapping:(char -> string) -> str:string -> string /// Builds a new string whose characters are the results of applying the function mapping /// to each index from 0 to count-1 and concatenating the resulting /// strings. /// The number of strings to initialize. /// The function to take an index and produce a string to /// be concatenated with the others. /// The constructed string. /// Thrown when count is negative. [] val init: count:int -> initializer:(int -> string) -> string /// Tests if all characters in the string satisfy the given predicate. /// The function to test each character of the string. /// The input string. /// True if all characters return true for the predicate and false otherwise. [] val forall: predicate:(char -> bool) -> str:string -> bool /// Tests if any character of the string satisfies the given predicate. /// The function to test each character of the string. /// The input string. /// True if any character returns true for the predicate and false otherwise. [] val exists: predicate:(char -> bool) -> str:string -> bool /// Returns a string by concatenating count instances of str. /// The number of copies of the input string will be copied. /// The input string. /// The concatenated string. /// Thrown when count is negative. [] val replicate: count:int -> str: string -> string /// Returns the length of the string. /// The input string. /// The number of characters in the string. [] val length: str:string -> int