maxElement property
int
maxElement
Returns the maximum value contained in the set if not isNil().
@return the maximum value contained in the set. @throws RuntimeException if set is empty
Implementation
int get maxElement {
if (isNil) {
throw StateError('set is empty');
}
return intervals.last.b;
}