combineN method
Return a
appended to itself n
times.
Return empty
if n == 0
.
Implementation
@override
T combineN(T a, int n) {
if (n < 0) {
throw const FormatException(
"Repeated combining for monoids must have n >= 0");
} else if (n == 0) {
return empty;
}
return _repeatedCombineN(a, n);
}