Documentation
¶
Index ¶
- type ArraySet
- func (s ArraySet[_]) Cardinality() (core.Cardinal, bool)
- func (s ArraySet[Obj]) Clone() ArraySet[Obj]
- func (s ArraySet[Obj]) Contains(obj Obj) bool
- func (s *ArraySet[Obj]) Exclude(objs ...Obj)
- func (s *ArraySet[Obj]) ExcludeAll(seq iter.Seq[Obj])
- func (s *ArraySet[Obj]) ExcludeSeq(seq seqs.Seq[Obj])
- func (s *ArraySet[Obj]) ExcludeSet(set core.SetOf[Obj])
- func (s ArraySet[Obj]) ForEachUntil(yield func(Obj) bool)
- func (s *ArraySet[Obj]) Include(objs ...Obj)
- func (s *ArraySet[Obj]) IncludeAll(seq iter.Seq[Obj])
- func (s *ArraySet[Obj]) IncludeSeq(seq seqs.Seq[Obj])
- func (s ArraySet[_]) Len() int
- func (s ArraySet[Obj]) Values(yield func(Obj) bool)
- func (s ArraySet[Obj]) WithEq(eq func(Obj, Obj) bool) ArraySet[Obj]
- func (s ArraySet[Obj]) WithItems(items []Obj) ArraySet[Obj]
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArraySet ¶
func FromSlice ¶
func FromSlice[Obj comparable](objs []Obj) ArraySet[Obj]
func FromValues ¶
func FromValues[Obj comparable](objs ...Obj) ArraySet[Obj]
func (*ArraySet[Obj]) ExcludeAll ¶ added in v0.6.0
ExcludeAll removes all objects from the set that are found in the specified sequence.
NOTE: The current implementation is slower than calling Exclude(slices.Collect(seq)...) would be if converting the sequence to a slice is practical.
func (*ArraySet[Obj]) ExcludeSeq ¶
ExcludeSeq removes all objects from the set that are found in the specified sequence.
NOTE: The current implementation is slower than calling Exclude(seqs.ToSlice(seq)...) would be if converting the sequence to a slice is practical.
func (*ArraySet[Obj]) ExcludeSet ¶
ExcludeSet removes all items from the array set that are contained in the specified set.
func (ArraySet[Obj]) ForEachUntil ¶
func (*ArraySet[Obj]) IncludeAll ¶ added in v0.6.0
func (*ArraySet[Obj]) IncludeSeq ¶
Click to show internal directories.
Click to hide internal directories.