Documentation ¶
Index ¶
- type Set
- func (s *Set) Add(items ...float32) *Set
- func (s *Set) Clear() *Set
- func (s *Set) Clone() *Set
- func (s *Set) Complement(others ...*Set) *Set
- func (s *Set) Contains(item float32) bool
- func (s *Set) ContainsAll(items ...float32) bool
- func (s *Set) ContainsAny(items ...float32) bool
- func (s *Set) Delete(items ...float32) *Set
- func (s *Set) Equal(other *Set) bool
- func (s *Set) Intersection(others ...*Set) *Set
- func (s *Set) Items() (res []float32)
- func (s *Set) Size() int
- func (s *Set) Union(others ...*Set) *Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶ added in v0.7.0
type Set struct {
// contains filtered or unexported fields
}
func NewIntersection ¶ added in v0.11.4
Create a new set that is the intersection of all provided sets
func (*Set) Complement ¶ added in v0.7.0
Complement removes items that are not in the other sets. This mutates the set.
func (*Set) ContainsAll ¶ added in v0.8.0
Check if the set contains all the given items
func (*Set) ContainsAny ¶ added in v0.8.0
Check if the set contains any of the given items
func (*Set) Intersection ¶ added in v0.10.0
Intersection will reduce this set to the items that are present in this set and the other sets. This mutates the set.
Click to show internal directories.
Click to hide internal directories.