Read
Splits the string into two strings, the first containing the first character and the second containing the rest of the strings and passes them to the given function.
Syntax
String.Read
· [text]
· [reader]
· [alt]
Parameters
- text
- The text to split.
- reader
- THe function that takes the two string segments.
- alt
- An alternative result to return if the string is empty.
Return Value
The result of reader
or alt
if the string was empty.