iterator

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoubleEndedIterable

type DoubleEndedIterable[T any] interface {
	DoubleEndedIter() DoubleEndedIterator[T]
}

type DoubleEndedIterator

type DoubleEndedIterator[T any] interface {
	Iterator[T]
	Prev() optional.Optional[T]
}

DoubleEndedIterator is the interface that wraps the basic methods for iterating over a collection in both directions.

type Iterable

type Iterable[T any] interface {
	Iter() Iterator[T]
}

type Iterator

type Iterator[T any] interface {
	Next() optional.Optional[T]
}

Iterator is the interface that wraps the basic methods for iterating over a collection.

type SizedIterator

type SizedIterator[T any] interface {
	Iterator[T]
	SizeHint() (uint, optional.Optional[uint])
}

SizedIterator is the interface that wraps the basic methods for iterating over a collection that also provides a size.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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