Parses the given string s to extract the first character, optionally modified by optModifier. If parsing fails, a descriptive error message is returned in the failure.
Parses the given string s to extract the first character, optionally modified by optModifier. If parsing fails, a descriptive error message is returned in the failure.
Value parameters
optModifier
an optional modifier string that may influence the parsing. Currently unused.
s
the input string to be parsed. It must not be empty if the parsing is to succeed.
Attributes
Returns
a Try[Char] that contains a Char if parsing is successful, or a failure describing the error.