Documentation ¶
Index ¶
- type Set
- func (s *Set) Add(items ...float64)
- func (s *Set) Clear()
- func (s *Set) Clone() *Set
- func (s *Set) Complement(others ...Set)
- func (s Set) Contains(item float64) bool
- func (s Set) ContainsAll(items ...float64) bool
- func (s Set) ContainsAny(items ...float64) bool
- func (s *Set) Delete(items ...float64)
- func (s Set) Equal(other Set) bool
- func (s *Set) Intersection(others ...Set)
- func (s *Set) Items() (res []float64)
- func (s *Set) Size() int
- func (s *Set) Union(others ...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
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
Click to show internal directories.
Click to hide internal directories.