abstract class Crystalline::Graph::AbstractIterator(T)

Included Modules

Direct Known Subclasses

Defined in:

graph/iterator.cr

Instance Method Summary

Instance Method Detail

abstract def at_beginning? #

[View source]
abstract def at_end? #

[View source]
def backward #

[View source]
def current #

[View source]
def current_edge #

[View source]
def each(&) #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


[View source]
def empty? #
Description copied from module Enumerable(T)

Returns true if self is empty, false otherwise.

([] of Int32).empty? # => true
([1]).empty?         # => false

[View source]
def first #
Description copied from module Enumerable(T)

Returns the first element in the collection. Raises Enumerable::EmptyError if the collection is empty.

([1, 2, 3]).first   # => 1
([] of Int32).first # raises Enumerable::EmptyError

[View source]
def forward #

[View source]
def last #

[View source]
def move_backward_until(&) #

[View source]
def move_forward_until(&) #

[View source]
def peek #

[View source]
def set_to_begin #

[View source]
def set_to_end #

[View source]