Documentation
¶
Index ¶
- func All[K comparable, V any](ma map[K]V) iter.Seq2[K, V]
- func Clear[K comparable, V any](ma map[K]V)
- func Delete[K comparable, V any](ma map[K]V, k K)
- func Entries[K comparable, V any](ma map[K]V) iter.Seq2[K, V]
- func Get[K comparable, V any](ma map[K]V, k K) (V, bool)
- func GetOrZero[K comparable, V any](ma map[K]V, k K) V
- func Has[K comparable, V any](ma map[K]V, k K) bool
- func Keys[K comparable, V any](ma map[K]V) iter.Seq[K]
- func Set[K comparable, V any](ma map[K]V, k K, v V) map[K]V
- func Size[K comparable, V any](ma map[K]V) int
- func Values[K comparable, V any](ma map[K]V) iter.Seq[V]
- type Map
- func (ma *Map[K, V]) All(k K) iter.Seq2[K, V]
- func (ma *Map[K, V]) Clear() *Map[K, V]
- func (ma *Map[K, V]) Delete(k K) *Map[K, V]
- func (ma *Map[K, V]) Entries() iter.Seq2[K, V]
- func (ma *Map[K, V]) Get(k K) (V, bool)
- func (ma *Map[K, V]) GetOrZero(k K) V
- func (ma *Map[K, V]) Has(k K) bool
- func (ma *Map[K, V]) Keys() iter.Seq[K]
- func (ma *Map[K, V]) Set(k K, v V) *Map[K, V]
- func (ma *Map[K, V]) Size() int
- func (ma *Map[K, V]) Values() iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
func Clear[K comparable, V any](ma map[K]V)
func Delete ¶
func Delete[K comparable, V any](ma map[K]V, k K)
func Get ¶
func Get[K comparable, V any](ma map[K]V, k K) (V, bool)
func GetOrZero ¶
func GetOrZero[K comparable, V any](ma map[K]V, k K) V
func Has ¶
func Has[K comparable, V any](ma map[K]V, k K) bool
func Set ¶
func Set[K comparable, V any](ma map[K]V, k K, v V) map[K]V
func Size ¶
func Size[K comparable, V any](ma map[K]V) int
Types ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.