lessThan method

bool lessThan(
  1. InkList otherList
)
Returns true if all the item values in the current list are less than all the item values in the passed in list. Equivalent to calling (list1 < list2) in ink.

Implementation

bool lessThan(InkList otherList) {
  if (otherList.isEmpty) return false;
  if (isEmpty) return true;

  return maxItem.value < otherList.minItem.value;
}