class Days::Day03::SpiralIterator

Included Modules

Direct Known Subclasses

Defined in:

days/day_03.cr

Constant Summary

DIRECTIONS = [:right, :up, :left, :down].cycle

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

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.


[View source]