function* rangeGeneratorWithReturn(start, stop) {
  for (let i = start; i < stop; i++) {
    yield i;
  }
  return stop;
}
Creates a Generator object that yields the values start to stop-1 and returns
the value stop.
@param {number} start
@param {number} stop
@return {!Iterable<number>}