Documentation
¶
Index ¶
- type Any
- func (s Any[K]) Copy() Any[K]
- func (s Any[K]) Delete(items ...K) Any[K]
- func (s Any[K]) Difference(s2 Any[K]) Any[K]
- func (s Any[K]) Equal(s2 Any[K]) bool
- func (s Any[K]) Has(item K) bool
- func (s Any[K]) HasAll(items ...K) bool
- func (s Any[K]) HasAny(items ...K) bool
- func (s Any[K]) Insert(items ...K) Any[K]
- func (s Any[K]) Intersection(s2 Any[K]) Any[K]
- func (s Any[K]) IsSuperset(s2 Any[K]) bool
- func (s Any[K]) Len() int
- func (s Any[K]) List() []K
- func (s Any[K]) PopAny() (K, bool)
- func (s Any[K]) Union(s2 Any[K]) Any[K]
- type Empty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any[K comparable] map[K]Empty
func AnyKeySet ¶
func AnyKeySet[K comparable, V any](theMap map[K]V) Any[K]
func NewAny ¶
func NewAny[K comparable](items ...K) Any[K]
func (Any[K]) Difference ¶
func (Any[K]) Intersection ¶
func (Any[K]) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
Click to show internal directories.
Click to hide internal directories.