code: public void updateAt(int i, VectorFunction function) {
          set(i, function.evaluate(i, get(i)));
      }
docs: Updates the specified element of this vector by applying given {@code function}.
  
  @param i element's index
  @param function the vector function