Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2026 Changes in this version + type HashSet map[T]struct + func NewHashSet[T comparable](items []T) HashSet[T] + func (hs HashSet[T]) Add(item T) bool + func (hs HashSet[T]) Clear() + func (hs HashSet[T]) Contains(item T) bool + func (hs HashSet[T]) ExceptWith(other []T) + func (hs HashSet[T]) ExceptWithSet(other HashSet[T]) + func (hs HashSet[T]) IntersectWith(other []T) + func (hs HashSet[T]) IntersectWithSet(other HashSet[T]) + func (hs HashSet[T]) IsEmpty() bool + func (hs HashSet[T]) IsProperSubsetOf(other []T) bool + func (hs HashSet[T]) IsProperSubsetOfSet(other HashSet[T]) bool + func (hs HashSet[T]) IsProperSupersetOf(other []T) bool + func (hs HashSet[T]) IsProperSupersetOfSet(other HashSet[T]) bool + func (hs HashSet[T]) IsSubsetOf(other []T) bool + func (hs HashSet[T]) IsSubsetOfSet(other HashSet[T]) bool + func (hs HashSet[T]) IsSupersetOf(other []T) bool + func (hs HashSet[T]) IsSupersetOfSet(other HashSet[T]) bool + func (hs HashSet[T]) Keys() []T + func (hs HashSet[T]) Overlaps(other []T) bool + func (hs HashSet[T]) OverlapsSet(other HashSet[T]) bool + func (hs HashSet[T]) Remove(item T) bool + func (hs HashSet[T]) RemoveWhere(predicate func(T) bool) int + func (hs HashSet[T]) SetEquals(other []T) bool + func (hs HashSet[T]) SetEqualsSet(other HashSet[T]) bool + func (hs HashSet[T]) SymmetricExceptWith(other []T) + func (hs HashSet[T]) SymmetricExceptWithSet(other HashSet[T]) + func (hs HashSet[T]) UnionWith(other []T) + func (hs HashSet[T]) UnionWithSet(other HashSet[T])