Versions in this module Expand all Collapse all v1 v1.0.0 Feb 5, 2025 Changes in this version + type Set struct + func New[E comparable](vals ...E) *Set[E] + func (s *Set[E]) Add(vals ...E) + func (s *Set[E]) Clear() + func (s *Set[E]) Contains(v E) bool + func (s *Set[E]) Delete(vals ...E) + func (s *Set[E]) Difference(s2 *Set[E]) *Set[E] + func (s *Set[E]) Disjoint(s2 *Set[E]) bool + func (s *Set[E]) Empty() bool + func (s *Set[E]) Intersection(s2 *Set[E]) *Set[E] + func (s *Set[E]) Members() []E + func (s *Set[E]) Size() int + func (s *Set[E]) String() string + func (s *Set[E]) Union(s2 *Set[E]) *Set[E]