char_to_uint¶
-
inline letter_type libsemigroups::CongruenceWrapper::char_to_uint(char a) const¶
Convert a char to a libsemigroups::letter_type representing the same generator of the finitely presented semigroup represented by
this
.- Complexity.
Constant.
- Parameters
a – the string to convert.
- Throws
LibsemigroupsException – if
a
is not in alphabet().- Returns