Versions in this module Expand all Collapse all v0 v0.1.0 Apr 8, 2024 Changes in this version + func IsEmptySet[T comparable](s *Set[T]) bool + type Set struct + func BuildSet[T comparable](xn ...T) *Set[T] + func CreateFrom[T comparable](collection xcontainer.Iterator[T]) *Set[T] + func CreateSetWithCapacity[T comparable](n int) *Set[T] + func CreateSet[T comparable]() *Set[T] + func (s *Set[T]) Add(x T) error + func (s *Set[T]) Capacity() int + func (s *Set[T]) Clear() + func (s *Set[T]) Enumerate() []T + func (s *Set[T]) Equal(s2 *Set[T]) bool + func (s *Set[T]) Filter(p func(T) bool) *Set[T] + func (s *Set[T]) Hash() string + func (s *Set[T]) IsElementOf(x T) bool + func (s *Set[T]) Iterate() (xcontainer.IterateHandler[T], xcontainer.CancelHandler) + func (s *Set[T]) Map(f func(T) T) *Set[T] + func (s *Set[T]) Pick() + func (s *Set[T]) Pop() (v T, ok bool) + func (s *Set[T]) Remove(x T) + func (s *Set[T]) Size() int Other modules containing this package github.com/danielhookx/xcontainer/set