Skip to content

Glossary: Go in Practice

Iterator

Also written: iterators

A function you can `range` over, shaped `func(yield func(V) bool)`. It hands out values one at a time, so a big table never sits in memory at once.

Where the book teaches it

Related terms

yielditer.Seq[V]; iter.Seq2[K, V]