code: public LoopInfo<R> setValues(int currentIndex, int effectiveIndex, R lastRes) {
                  this.currentIndex = currentIndex;
                  this.effectiveIndex = effectiveIndex;
                  this.lastRes = lastRes;
                  return this;
          }
docs: set all fields of the loop info
  
  @param currentIndex   current index
  @param effectiveIndex the times 'last loop value' has been modified
  @param lastRes        last loop result
  @return <code>this</code>