Versions in this module Expand all Collapse all v1 v1.0.0 Feb 27, 2026 Changes in this version + type Set interface + All func() []T + Difference func(set Set[T]) Set[T] + Do func(f func(T)) + DoE func(f func(T) error) error + Has func(element T) bool + Insert func(elements ...T) + Intersection func(set Set[T]) Set[T] + Len func() int + ProperSubsetOf func(set Set[T]) bool + Remove func(element T) + SubsetOf func(set Set[T]) bool + Union func(set Set[T]) Set[T] + func Intersection[T comparable](sets ...Set[T]) Set[T] + func NewSyncSet[T comparable](initial ...T) Set[T] + func New[T comparable](initial ...T) Set[T] + type SyncSet struct + func (s *SyncSet[T]) All() []T + func (s *SyncSet[T]) Difference(set Set[T]) Set[T] + func (s *SyncSet[T]) Do(f func(T)) + func (s *SyncSet[T]) DoE(f func(T) error) error + func (s *SyncSet[T]) Has(element T) bool + func (s *SyncSet[T]) Insert(elements ...T) + func (s *SyncSet[T]) Intersection(set Set[T]) Set[T] + func (s *SyncSet[T]) Len() int + func (s *SyncSet[T]) ProperSubsetOf(set Set[T]) bool + func (s *SyncSet[T]) Remove(element T) + func (s *SyncSet[T]) SubsetOf(set Set[T]) bool + func (s *SyncSet[T]) Union(set Set[T]) Set[T]