class

Crystalline::Graph::AbstractIterator(T)

Inherits Enumerable / Reference / Object

Instance methods

at_beginning?
Source
at_end?
Source
backward
Source
current
Source
current_edge
Source
each

Must yield this collection's elements to the block.

Source
empty?

Returns true if self does not contain any element.

([] of Int32).empty? # => true
([1]).empty?         # => false
[nil, false].empty?  # => false
  • #present? returns the inverse.
Source
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
Source
forward
Source
last
Source
move_backward_until
Source
move_forward_until
Source
peek
Source
set_to_begin
Source
set_to_end
Source

Nested types