char_to_uint

letter_type libsemigroups::FpSemigroupInterface::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.

Return

a libsemigroups::letter_type.

Complexity.

Constant.

Parameters
  • a: the string to convert.

Exceptions