itermap

package
v0.0.0-...-8e1ebca Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Each

func Each[K comparable, V any, F ~func(K, V)](seq iter.Seq2[K, V], f F)

Each iterates over iter.Seq2[K, V] and applies F to each key and value.

func Iterator

func Iterator[M ~map[K]V, K comparable, V any](m M) iter.Seq2[K, V]

Iterator creates iter.Seq2[K, V] from any map[K]V.

func Join

func Join[K comparable, V any](iters ...iter.Seq2[K, V]) iter.Seq2[K, V]

Join N iter.Seq2[K, T] to one iterator.

func Keys

func Keys[M ~map[K]V, K comparable, V any](m M) iter.Seq[K]

Keys yields map[K]V keys as iter.Seq[K].

func Values

func Values[M ~map[K]V, K comparable, V any](m M) iter.Seq[V]

Values yields map[K]V values as iter.Seq[V].

Types

This section is empty.

Jump to

Keyboard shortcuts

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