Crystalline::Graph::AbstractIterator(T)
Inherits Enumerable / Reference / Object
Instance methods
at_beginning?
Sourceat_end?
Sourcebackward
Sourcecurrent
Sourcecurrent_edge
Sourceempty?
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
first
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
forward
Sourcelast
Sourcemove_backward_until
Sourcemove_forward_until
Sourcepeek
Sourceset_to_begin
Sourceset_to_end
Source