Interface Iterator<T, TReturn, TNext>
interface Iterator<T, TReturn, TNext> {
next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
Type Parameters
Hierarchy
- Iterator (view full)
Methods
next
- next(...__namedParameters): IteratorResult<T, TReturn>
Parameters
Rest
...__namedParameters: [] | [TNext]
Returns IteratorResult<T, TReturn>
Optional
return
- return(value?): IteratorResult<T, TReturn>
Parameters
Optional
value: TReturn
Returns IteratorResult<T, TReturn>
Optional
throw
- throw(e?): IteratorResult<T, TReturn>
Parameters
Optional
e: any
Returns IteratorResult<T, TReturn>