checkEmpty method
void
checkEmpty()
Implementation
void checkEmpty() {
if (isEmpty) {
throw StateError("Cannot find minimum of empty collection");
}
}
void checkEmpty() {
if (isEmpty) {
throw StateError("Cannot find minimum of empty collection");
}
}