hashset

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT-0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashSet

type HashSet[Obj comparable] struct {
	mapkeyset.MapKeySet[map[Obj]struct{}, Obj, struct{}]
}

func FromIter

func FromIter[Obj comparable](seq iter.Seq[Obj]) (res HashSet[Obj])

func FromSeq

func FromSeq[Obj comparable](seq seqs.Seq[Obj]) (res HashSet[Obj])

func FromSlice

func FromSlice[Obj comparable](objs []Obj) (res HashSet[Obj])

func FromValues

func FromValues[Obj comparable](objs ...Obj) (res HashSet[Obj])

func (HashSet[Obj]) Clone

func (s HashSet[Obj]) Clone() HashSet[Obj]

func (*HashSet[Obj]) Exclude

func (s *HashSet[Obj]) Exclude(objs ...Obj)

func (*HashSet[Obj]) ExcludeAll

func (s *HashSet[Obj]) ExcludeAll(seq iter.Seq[Obj])

func (*HashSet[Obj]) ExcludeSeq

func (s *HashSet[Obj]) ExcludeSeq(seq seqs.Seq[Obj])

func (*HashSet[Obj]) ExcludeSet

func (s *HashSet[Obj]) ExcludeSet(set core.SetOf[Obj])

func (*HashSet[Obj]) Include

func (s *HashSet[Obj]) Include(objs ...Obj)

func (*HashSet[Obj]) IncludeAll

func (s *HashSet[Obj]) IncludeAll(seq iter.Seq[Obj])

func (*HashSet[T]) IncludeSeq

func (s *HashSet[T]) IncludeSeq(seq seqs.Seq[T])

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL