class documentation
class Semigroup(Protocol[
A type with an associative binary operator.
Common examples of a semigroup are integers with addition and strings with concatenation.
Method | __add__ |
This must be associative: a + (b + c) == (a + b) + c |