Iterators can't be reset, so here's a cursor.

interface Cursor<T> {
    next(relativeChange?: number): CursorResult<T>;
    reset(): void;
}

Type Parameters

  • T

Methods

Methods