greaterThan method
Implementation
bool greaterThan(InkList otherList) {
if (isEmpty) return false;
if (otherList.isEmpty) return true;
// All greater
return minItem.value > otherList.maxItem.value;
}
bool greaterThan(InkList otherList) {
if (isEmpty) return false;
if (otherList.isEmpty) return true;
// All greater
return minItem.value > otherList.maxItem.value;
}