day139

package
v0.0.0-...-36687a4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 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 Iterator

type Iterator interface {
	Next() interface{}
	HasNext() bool
}

Iterator is a simple iterator interface.

type PeekableIterator

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

PeekableIterator wraps an iterator and provides the ability to peek.

func (*PeekableIterator) HasNext

func (p *PeekableIterator) HasNext() bool

HasNext returns true if there is more to read from the iterator and false otherwise.

func (*PeekableIterator) Next

func (p *PeekableIterator) Next() interface{}

Next returns the next element and advances the iterator.

func (*PeekableIterator) Peek

func (p *PeekableIterator) Peek() interface{}

Peek returns the next element without moving the iterator.

Jump to

Keyboard shortcuts

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