class

Matrix::ItemIterator(T)

Inherits Iterator < Enumerable < Reference < Object

Constructors

new(matrix : Matrix(T), row : Int32 = 0, col : Int32 = 0, directive : Symbol = :all)
Source

Instance methods

next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source
rewind
Source