iterator

package
v0.0.0-...-33f344c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accept

type Accept func(Value) bool

type Collection

type Collection interface {
	Each(Accept)
}

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func BuildIterator

func BuildIterator(coll Collection) *Iterator

func (*Iterator) Next

func (iter *Iterator) Next() (ok bool)

func (*Iterator) Stop

func (iter *Iterator) Stop()

func (*Iterator) Value

func (iter *Iterator) Value() Value

type Iterators

type Iterators []Iterator

func (Iterators) Each

func (iters Iterators) Each(accept Accept)

type Value

type Value interface{}

Jump to

Keyboard shortcuts

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