Prefixes and suffixes¶
This page contains information about the methods of the FroidurePin
class related to prefixes and suffixes.
- FroidurePin.final_letter(self: FroidurePin, pos: int) int ¶
Returns the last letter of the element with specified index.
- Parameters
pos (int) -- the position
- Returns
An
int
.
- FroidurePin.first_letter(self: FroidurePin, pos: int) int ¶
Returns the first letter of the element with specified index.
- Parameters
pos (int) -- the position
- Returns
An
int
.
- FroidurePin.prefix(self: FroidurePin, pos: int) int ¶
Returns the index of the longest proper prefix.
- Parameters
pos (int) -- the index
- Returns
An
int
.
- FroidurePin.suffix(self: FroidurePin, pos: int) int ¶
Returns the position of the longest proper suffix.
- Parameters
pos (int) -- the position
- Returns
An
int
.