Help us shape the future of Go! Take the 2026 Go Developer Survey

iterate

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Done

func Done[V any](yield func(V) bool, done func()) func(V) bool

Done wraps yield and calls done when yield returns false.

func Done2

func Done2[K, V any](yield func(K, V) bool, done func()) func(K, V) bool

Done2 wraps yield and calls done when yield returns false.

func Once

func Once[V comparable](yield func(V) bool) func(V) bool

Once wraps yield to ensure each unique value is only yielded once.

func Once2

func Once2[K any, V comparable](yield func(K, V) bool) func(K, V) bool

Once2 wraps yield to ensure each unique value (but not key) is only yielded once. TODO: necessary?

Types

This section is empty.

Jump to

Keyboard shortcuts

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