Documentation
¶
Index ¶
- type HashSet
- func (s HashSet[Obj]) Clone() HashSet[Obj]
- func (s *HashSet[Obj]) Exclude(objs ...Obj)
- func (s *HashSet[Obj]) ExcludeAll(seq iter.Seq[Obj])
- func (s *HashSet[Obj]) ExcludeSeq(seq seqs.Seq[Obj])
- func (s *HashSet[Obj]) ExcludeSet(set core.SetOf[Obj])
- func (s *HashSet[Obj]) Include(objs ...Obj)
- func (s *HashSet[Obj]) IncludeAll(seq iter.Seq[Obj])
- func (s *HashSet[T]) IncludeSeq(seq seqs.Seq[T])
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 FromSlice ¶
func FromSlice[Obj comparable](objs []Obj) (res HashSet[Obj])
func FromValues ¶
func FromValues[Obj comparable](objs ...Obj) (res HashSet[Obj])
func (*HashSet[Obj]) ExcludeAll ¶
func (*HashSet[Obj]) ExcludeSeq ¶
func (*HashSet[Obj]) ExcludeSet ¶
func (*HashSet[Obj]) IncludeAll ¶
func (*HashSet[T]) IncludeSeq ¶
Click to show internal directories.
Click to hide internal directories.