Skip to content

Glossary: Go in Practice

slices and maps iterator helpers

Also written: slices.All, slices.Values, slices.Collect, slices.Sorted, maps.Keys

Functions that make and consume iterators. `All`, `Values` and `Keys` produce them, and `Collect` and `Sorted` turn them into slices.

Where the book teaches it

Related terms

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