code: private void forEach(KTypeProcedure<? super KType> procedure, int fromIndex, final int toIndex) {
      final KType[] buffer = Intrinsics.<KType[]> cast(this.buffer);
      for (int i = fromIndex; i != toIndex; i = oneRight(i, buffer.length)) {
        procedure.apply(buffer[i]);
      }
    }
docs: Applies <code>procedure</code> to a slice of the deque,
  <code>fromIndex</code>, inclusive, to <code>toIndex</code>, exclusive.