docs: public static MutableLongTuple removeElementAt(
          LongTuple t, int index, MutableLongTuple result)
      {
          Utils.checkForValidIndex(index, t.getSize());
          if (result == null)
          {
              result = LongTuples.create(t.getSize() - 1);
          }
          else if (result.getSize() != t.getSize() - 1)
          {
              throw new IllegalArgumentException(
                  "Input size is " + t.getSize() + ", result size must be " +
                  (t.getSize() - 1) + " but is " + result.getSize());
          }
          int counter = 0;
          for (int i=0; i<index; i++)
          {
              result.set(counter, t.get(i));
              counter++;
          }
          for (int i=index+1; i<t.getSize(); i++)
          {
              result.set(counter, t.get(i));
              counter++;
          }
          return result;
      }