Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterable ¶
type Iterable interface { // Begin returns an Iterator pointing to the first object. Begin() Iterator // End returns an Iterator pointing to a theoretical past-the-end object. End() Iterator }
Iterable represents a type which can be iterated.
type Iterator ¶
type Iterator interface { // Next returns an iterator pointing to the next object. Next() Iterator // Value returns the value of the object pointed by the Iterator. Value() interface{} // Equals returns true if the Iterators point to the same object. Equals(r Iterator) bool }
Iterator is a type which Iterable holds.
type IteratorDirection ¶
type IteratorDirection uint8
const ( FORWARD IteratorDirection = iota + 1 BACKWARD BOTH NONE )
type ReverseIterable ¶
Click to show internal directories.
Click to hide internal directories.