StringExtensions Module
Fluent extension operations on strings.
Type extensions
Type extension | Description | ||
Full Usage:
this.collect mapping
Parameters:
char -> string
-
The function to produce a string from each character of the input string.
Returns: string
The concatenated string.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.exists predicate
Parameters:
char -> bool
-
The function to test each character of the string.
Returns: bool
True if any character returns true for the predicate and false otherwise.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.forall predicate
Parameters:
char -> bool
-
The function to test each character of the string.
Returns: bool
True if all characters return true for the predicate and false otherwise.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.iter action
Parameters:
char -> unit
-
The function to be applied to each character of the string.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.iteri action
Parameters:
int -> char -> unit
-
The function to apply to each character and index of the string.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.length ()
Parameters:
unit
Returns: int
The number of characters in the string.
Modifiers: inline |
|||
Full Usage:
this.length
Returns: int
The number of characters in the string.
Modifiers: inline |
|||
Full Usage:
this.map mapping
Parameters:
char -> char
-
The function to apply to the characters of the string.
Returns: string
The resulting string.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.mapi mapping
Parameters:
int -> char -> char
-
The function to apply to each character and index of the string.
Returns: string
The resulting string.
Modifiers: inline |
Extended Type:
|
||
Full Usage:
this.replicate count
Parameters:
int
-
The number of copies of the input string will be copied.
Returns: string
The concatenated string.
Modifiers: inline |
Extended Type:
|