Documentation ¶
Index ¶
- func All[Map ~map[K]V, K comparable, V any](m Map) iter.Seq2[K, V]
- func Collect[K comparable, V any](seq iter.Seq2[K, V]) map[K]V
- func Insert[Map ~map[K]V, K comparable, V any](m Map, seq iter.Seq2[K, V]) Map
- func Keys[Map ~map[K]V, K comparable, V any](m Map) iter.Seq[K]
- func Values[Map ~map[K]V, K comparable, V any](m Map) iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All[Map ~map[K]V, K comparable, V any](m Map) iter.Seq2[K, V]
All returns an iterator over key-value pairs from m.
func Collect ¶
func Collect[K comparable, V any](seq iter.Seq2[K, V]) map[K]V
Collect collects key-value pairs from seq into a new map and returns it.
func Insert ¶
func Insert[Map ~map[K]V, K comparable, V any](m Map, seq iter.Seq2[K, V]) Map
Insert adds the key-value pairs from seq to m.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.