Documentation
¶
Index ¶
- type HashSet
- func (h *HashSet) Add(item string)
- func (h *HashSet) Clear()
- func (h *HashSet) Contains(item string) bool
- func (h *HashSet) Copy() *HashSet
- func (h *HashSet) Count() int
- func (h *HashSet) Del(item string)
- func (h *HashSet) Difference(s *HashSet) *HashSet
- func (h *HashSet) Intersection(s *HashSet) *HashSet
- func (h *HashSet) Items() []string
- func (h *HashSet) Union(s *HashSet) *HashSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashSet ¶
type HashSet struct {
// contains filtered or unexported fields
}
HashSet is a simple Set structure.
func NewHashSet ¶
NewHashSet creates and returns a new HashSet items is a list of initial set members.
func (*HashSet) Difference ¶
Difference returns a new HashSet which contains the result of subtracting s from the HashSet
func (*HashSet) Intersection ¶
Intersection returns the set intersection with s as a new set
Click to show internal directories.
Click to hide internal directories.