Versions in this module Expand all Collapse all v1 v1.0.0 Apr 11, 2024 Changes in this version + type Empty struct + type Set map[E]Empty + func KeySet[E ordered, A any](theMap map[E]A) Set[E] + func New[E ordered](items ...E) Set[E] + func (s Set[E]) Delete(items ...E) Set[E] + func (s Set[E]) Difference(s2 Set[E]) Set[E] + func (s Set[E]) Equal(s2 Set[E]) bool + func (s Set[E]) Has(item E) bool + func (s Set[E]) HasAll(items ...E) bool + func (s Set[E]) HasAny(items ...E) bool + func (s Set[E]) Insert(items ...E) Set[E] + func (s Set[E]) Intersection(s2 Set[E]) Set[E] + func (s Set[E]) IsSuperset(s2 Set[E]) bool + func (s Set[E]) Len() int + func (s Set[E]) PopAny() (E, bool) + func (s Set[E]) SortedList() []E + func (s Set[E]) Union(s2 Set[E]) Set[E] + func (s Set[E]) UnsortedList() []E + func (s Set[T]) Clear() Set[T] + func (s Set[T]) Clone() Set[T] + func (s Set[T]) SymmetricDifference(s2 Set[T]) Set[T]