code: public void forEachIndexed(int from, int step,
                                 @NotNull IndexedDoubleConsumer action) {
          int index = from;
          while (iterator.hasNext()) {
              action.accept(index, iterator.nextDouble());
              index += step;
          }
      }
docs: Performs the given indexed action on each element.
  
  <p>This is a terminal operation.
  
  @param from  the initial value of the index (inclusive)
  @param step  the step of the index
  @param action  the action to be performed on each element
  @since 1.2.1