MCPcopy Index your code
hub / github.com/tensorflow/tfjs / iteratorFromIncrementing

Function iteratorFromIncrementing

tfjs-data/src/iterators/lazy_iterator.ts:47–50  ·  view source on GitHub ↗
(start: number)

Source from the content-addressed store, hash-verified

45 * Create a `LazyIterator` of incrementing integers.
46 */
47export function iteratorFromIncrementing(start: number): LazyIterator<number> {
48 let i = start;
49 return iteratorFromFunction(() => ({value: i++, done: false}));
50}
51
52/**
53 * Create a `LazyIterator` from a function.

Callers 1

Calls 1

iteratorFromFunctionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…