Versions in this module Expand all Collapse all v1 v1.0.0 Jul 10, 2025 Changes in this version + type Set map[T]struct + func NewFromSlice[T comparable](items []T) Set[T] + func NewWithCapacity[T comparable](capacity int) Set[T] + func New[T comparable]() Set[T] + func (s Set[T]) Add(item T) + func (s Set[T]) AddAll(items []T) + func (s Set[T]) All() iter.Seq[T] + func (s Set[T]) Clear() + func (s Set[T]) Clone() Set[T] + func (s Set[T]) Contains(item T) bool + func (s Set[T]) ContainsAll(items []T) bool + func (s Set[T]) ContainsAny(items []T) bool + func (s Set[T]) Difference(other Set[T]) Set[T] + func (s Set[T]) Equal(other Set[T]) bool + func (s Set[T]) Intersection(other Set[T]) Set[T] + func (s Set[T]) IsDisjoint(other Set[T]) bool + func (s Set[T]) IsEmpty() bool + func (s Set[T]) IsSubsetOf(other Set[T]) bool + func (s Set[T]) IsSupersetOf(other Set[T]) bool + func (s Set[T]) Remove(item T) + func (s Set[T]) RemoveAll(items []T) + func (s Set[T]) Size() int + func (s Set[T]) SymmetricDifference(other Set[T]) Set[T] + func (s Set[T]) ToSlice() []T + func (s Set[T]) Union(other Set[T]) Set[T]