Documentation ¶ Index ¶ type Set func New[K comparable]() Set[K] func (this *Set[K]) Add(el K) bool func (this Set[K]) Contains(el K) bool func (this Set[K]) Len() int func (this *Set[K]) Merge(other Set[K]) func (this *Set[K]) Remove(el K) bool func (this Set[K]) Seq() iter.Seq[K] Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Set ¶ type Set[K comparable] struct { // contains filtered or unexported fields } func New ¶ func New[K comparable]() Set[K] func (*Set[K]) Add ¶ func (this *Set[K]) Add(el K) bool func (Set[K]) Contains ¶ func (this Set[K]) Contains(el K) bool func (Set[K]) Len ¶ func (this Set[K]) Len() int func (*Set[K]) Merge ¶ added in v0.3.1 func (this *Set[K]) Merge(other Set[K]) func (*Set[K]) Remove ¶ func (this *Set[K]) Remove(el K) bool func (Set[K]) Seq ¶ added in v0.2.0 func (this Set[K]) Seq() iter.Seq[K] Source Files ¶ View all Source files set.go Click to show internal directories. Click to hide internal directories.