docs: public static <T> T[] dropRight(T[] self, int num) {
          if (self.length <= num) {
              return createSimilarArray(self, 0);
          }
          if (num <= 0) {
              T[] ret = createSimilarArray(self, self.length);
              System.arraycopy(self, 0, ret, 0, self.length);
              return ret;
          }
  
          T[] ret = createSimilarArray(self, self.length - num);
          System.arraycopy(self, 0, ret, 0, self.length - num);
          return ret;
      }