linqcontainers
Version:
Linq-Collections (ES5): [IEnumerable, IQueryable, ...] + [List, Dictionary, Stack, ... + readonly]
17 lines (16 loc) • 457 B
TypeScript
export interface IIterable<TElement> {
copy(): IIterable<TElement>;
reset(): void;
next(): boolean;
value(): TElement;
}
export declare class ArrayIterator<TElement> implements IIterable<TElement> {
protected readonly source: TElement[];
private _index;
constructor(source: TElement[]);
copy(): IIterable<TElement>;
reset(): void;
private isValidIndex();
next(): boolean;
value(): TElement;
}