task

package
v0.0.0-...-abfb1be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: Unlicense Imports: 0 Imported by: 0

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ᐳᐳ

type IteratorᐸDataᐸintᐳᐳ interface {
	HasNext() bool
	Next() Dataᐸintᐳ
}

IteratorᐸEᐳ where E is Dataᐸintᐳ.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL