Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionᐸDataᐸintᐳᐳ ¶
type CollectionᐸDataᐸintᐳᐳ interface { IsEmpty() bool Iterator() IteratorᐸDataᐸintᐳᐳ Size() int }
CollectionᐸEᐳ where E is Dataᐸintᐳ.
type Dataᐸintᐳ ¶
type Dataᐸintᐳ interface { IsCollection() bool Collection() CollectionᐸDataᐸintᐳᐳ Element() int }
DataᐸTᐳ where T is int.
type DeepIteratorᐸintᐳ ¶
type DeepIteratorᐸintᐳ interface { // HasNext returns true if there's at least one more element available. HasNext() bool // Next returns the next element. // Next can only be called if HasNext returned true. Next() int }
DeepIteratorᐸTᐳ where T is int. Performs depth-first iteration over all inner elements of DataᐸTᐳ.
func NewDeepIteratorᐸintᐳ ¶
func NewDeepIteratorᐸintᐳ(data Dataᐸintᐳ) DeepIteratorᐸintᐳ
type IteratorᐸDataᐸintᐳᐳ ¶
IteratorᐸEᐳ where E is Dataᐸintᐳ.
Click to show internal directories.
Click to hide internal directories.