code: public void each(VectorProcedure procedure) {
          VectorIterator it = iterator();
  
          while (it.hasNext()) {
              double x = it.next();
              int i = it.index();
              procedure.apply(i, x);
          }
      }
docs: Applies given {@code procedure} to each element of this vector.
  
  @param procedure the vector procedure