iterator

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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 Iterator

type Iterator[T any] interface {
	Next() bool
	Value() T
}

Iterator provides for iterating over a Set.

func Empty

func Empty[T any]() Iterator[T]

Empty is the empty iterator.

type MapIterator

type MapIterator[T any] struct {
	// contains filtered or unexported fields
}

func Map

func Map[T any](i Iterator[T], m func(v T) T) MapIterator[T]

func (MapIterator[T]) Next

func (m MapIterator[T]) Next() bool

func (MapIterator[T]) Value

func (m MapIterator[T]) Value() T

Jump to

Keyboard shortcuts

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