class Days::Day03::SpiralIterator
- Days::Day03::SpiralIterator
- Reference
- Object
Included Modules
- Iterator(UInt64)
Direct Known Subclasses
Defined in:
days/day_03.crConstant Summary
-
DIRECTIONS =
[:right, :up, :left, :down].cycle
Constructors
Instance Method Summary
-
#next
Returns the next element in this iterator, or
Iterator::Stop::INSTANCE
if there are no more elements.
Constructor Detail
Instance Method Detail
def next
#
Description copied from module Iterator(UInt64)
Returns the next element in this iterator, or Iterator::Stop::INSTANCE
if there
are no more elements.