Documentation
¶
Overview ¶
Package set creates a ItemSet data structure for the Item type
Index ¶
- type Item
- type ItemSet
- func (s *ItemSet) Add(t Item) *ItemSet
- func (s *ItemSet) Clear()
- func (s *ItemSet) Delete(item Item) bool
- func (s *ItemSet) Difference(s2 *ItemSet) *ItemSet
- func (s *ItemSet) Has(item Item) bool
- func (s *ItemSet) Intersection(s2 *ItemSet) *ItemSet
- func (s *ItemSet) Items() []Item
- func (s *ItemSet) Size() int
- func (s *ItemSet) Subset(s2 *ItemSet) bool
- func (s *ItemSet) Union(s2 *ItemSet) *ItemSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemSet ¶
type ItemSet struct {
// contains filtered or unexported fields
}
ItemSet the set of Items
func (*ItemSet) Difference ¶
Difference returns a new set with all the elements that exist in the first set and don't exist in the second set
func (*ItemSet) Intersection ¶
Intersection returns a new set with elements that exist in both sets
Click to show internal directories.
Click to hide internal directories.