class
Phase::MultiIndexable::ElemAndCoordIterator(S, E, I)
- Phase::MultiIndexable::ElemAndCoordIterator(S, E, I)
- Reference
- Object
Included Modules
- Iterator({E, Indexable(I)})
Defined in:
multi_indexable/elem_coord_iterator.crConstructors
-
.new(src : MultiIndexable, coord_iter : StrideIterator(I)) forall I
Constructs an
ElemAndCoordIteratorthat draws coordinates from coord_iter and takes the matching elements from source. - .new(src : MultiIndexable, idx_region : IndexRegion)
- .new(src : MultiIndexable)
Instance Method Summary
- #clone : self
- #coord_iter : StrideIterator(I)
-
#next : Tuple(E, Indexable(I)) | Stop
Returns the next element in this iterator, or
Iterator::Stop::INSTANCEif there are no more elements. - #reset!(*args, **options)
- #reset!(*args, **options, &)
- #reverse!(*args, **options)
- #reverse!(*args, **options, &)
- #reverse_each
- #reverse_each(&)
-
#to_a
Returns an
Arraywith all the elements in the collection. - #unsafe_next : Tuple(E, Indexable(I))
Constructor Detail
Constructs an ElemAndCoordIterator that draws coordinates from coord_iter and takes the matching elements from source.
Instance Method Detail
def next : Tuple(E, Indexable(I)) | Stop
#
Description copied from module Iterator({E, Indexable(I)})
Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there
are no more elements.
def to_a
#
Description copied from module Enumerable({E, Indexable(I)})
Returns an Array with all the elements in the collection.
(1..5).to_a # => [1, 2, 3, 4, 5]