iterator

package
v0.90.0-pre Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 0 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(it Iterator) interface{}

Key returns the iterator key. TODO: Better description for this.

func Keys

func Keys(it Iterator) []interface{}

Keys returns the iterator keys.

func Next added in v0.75.0

func Next(it Iterator) bool

Next advances the iterator, return true if it is was successful and false otherwise.

func Value added in v0.75.0

func Value(it Iterator) interface{}

Value returns the current iterator value.

func Values

func Values(it Iterator) []interface{}

Values returns the iterator values.

Types

type Iterator

type Iterator struct{}

Iterator stubs a NEO iterator object type.

func Create

func Create(items []interface{}) Iterator

Create creates an iterator from the given items.

Jump to

Keyboard shortcuts

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