danmatrix / DanMatrixRowsIterator
Defined in: src/iterators/danMatrixRowsIterator.ts:6
The class DanMatrixRowsIterator implements MatrixIterator interface and Iterable interface
T
MatrixIterator<T[]>Iterable<T[]>
new DanMatrixRowsIterator<
T>(matrix):DanMatrixRowsIterator<T>
Defined in: src/iterators/danMatrixRowsIterator.ts:16
The public class constructor
DanMatrix<T>
the DanMatrix object
DanMatrixRowsIterator<T>
[iterator]():
Iterator<T[]>
Defined in: src/iterators/danMatrixRowsIterator.ts:75
A zero-argument function that returns an object, conforming to the Iterator Protocol. In Javascript/Typescript in order to be iterable, an object must implement the "@@iterator" method
Iterator<T[]>
an iterator object.
current():
T[] |undefined
Defined in: src/iterators/danMatrixRowsIterator.ts:35
Get the current row, or return undefined if the iterator was not yet started
T[] | undefined
hasNext():
boolean
Defined in: src/iterators/danMatrixRowsIterator.ts:59
Check if the iterator can return more rows
boolean
true if the iterator can return more rows, false if there are no rows left
next():
T[] |undefined
Defined in: src/iterators/danMatrixRowsIterator.ts:47
Get the next row, or return undefined if the iterator's end was reached
T[] | undefined
rewind():
void
Defined in: src/iterators/danMatrixRowsIterator.ts:66
Restart the iterator
void