int take() {
    if (nextIndex > listEnd) {
      return -1;
    }
    int result = items[nextIndex];
    nextIndex++;
    return result;
  }
Take the next item, if available

@return the item number, or -1 if no items are available.
evm/src/main/java/org/hyperledger/besu/evm/code/WorkList.java