iterator

package
v13.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 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[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](elems []T) *Iterator[T]

func (*Iterator[T]) CurrElem

func (it *Iterator[T]) CurrElem() T

func (*Iterator[T]) CurrPos

func (it *Iterator[T]) CurrPos() int

func (*Iterator[T]) Forward

func (it *Iterator[T]) Forward(pos int) *Iterator[T]

func (*Iterator[T]) Len

func (it *Iterator[T]) Len() int

func (*Iterator[T]) Next

func (it *Iterator[T]) Next() bool

func (*Iterator[T]) Prev

func (it *Iterator[T]) Prev() bool

func (*Iterator[T]) Reset

func (it *Iterator[T]) Reset() *Iterator[T]

func (*Iterator[T]) Rewind

func (it *Iterator[T]) Rewind(pos int) *Iterator[T]

func (*Iterator[T]) SetPos

func (it *Iterator[T]) SetPos(pos int) *Iterator[T]

Jump to

Keyboard shortcuts

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