Documentation
¶
Index ¶
- type Comparable
- type Entry
- type Map
- func (m Map[T]) Del(entryIn T) Map[T]
- func (m Map[T]) Get(entryIn T) (Comparable[T], bool)
- func (m Map[T]) Iter(f func(entryOut T) bool)
- func (m Map[T]) Len() uint64
- func (m Map[T]) Max() Comparable[T]
- func (m Map[T]) Min() Comparable[T]
- func (m Map[T]) Repr() []Comparable[T]
- func (m Map[T]) Set(entryIn T) Map[T]
- func (m Map[T]) Split(entryIn T) (Map[T], Map[T])
- type OrderedMap
- func (m OrderedMap[K, V]) Del(key K) OrderedMap[K, V]
- func (m OrderedMap[K, V]) Get(key K) (V, bool)
- func (m OrderedMap[K, V]) Iter(f func(K, V) bool)
- func (m OrderedMap[K, V]) Len() int
- func (m OrderedMap[K, V]) Max() (K, V)
- func (m OrderedMap[K, V]) Min() (K, V)
- func (m OrderedMap[K, V]) Repr() map[K]V
- func (m OrderedMap[K, V]) Set(key K, val V) OrderedMap[K, V]
- func (m OrderedMap[K, V]) Split(key K) (OrderedMap[K, V], OrderedMap[K, V])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
type Map ¶
type Map[T Comparable[T]] struct { // contains filtered or unexported fields }
func EmptyComparableMap ¶
func EmptyComparableMap[T Comparable[T]]() Map[T]
func (Map[T]) Get ¶
func (m Map[T]) Get(entryIn T) (Comparable[T], bool)
func (Map[T]) Max ¶
func (m Map[T]) Max() Comparable[T]
func (Map[T]) Min ¶
func (m Map[T]) Min() Comparable[T]
func (Map[T]) Repr ¶
func (m Map[T]) Repr() []Comparable[T]
type OrderedMap ¶
func EmptyOrderedMap ¶
func EmptyOrderedMap[K cmp.Ordered, V any]() OrderedMap[K, V]
func (OrderedMap[K, V]) Del ¶
func (m OrderedMap[K, V]) Del(key K) OrderedMap[K, V]
func (OrderedMap[K, V]) Get ¶
func (m OrderedMap[K, V]) Get(key K) (V, bool)
func (OrderedMap[K, V]) Iter ¶
func (m OrderedMap[K, V]) Iter(f func(K, V) bool)
func (OrderedMap[K, V]) Len ¶
func (m OrderedMap[K, V]) Len() int
func (OrderedMap[K, V]) Max ¶
func (m OrderedMap[K, V]) Max() (K, V)
func (OrderedMap[K, V]) Min ¶
func (m OrderedMap[K, V]) Min() (K, V)
func (OrderedMap[K, V]) Repr ¶
func (m OrderedMap[K, V]) Repr() map[K]V
func (OrderedMap[K, V]) Set ¶
func (m OrderedMap[K, V]) Set(key K, val V) OrderedMap[K, V]
func (OrderedMap[K, V]) Split ¶
func (m OrderedMap[K, V]) Split(key K) (OrderedMap[K, V], OrderedMap[K, V])
Click to show internal directories.
Click to hide internal directories.