Documentation ¶
Overview ¶
Package hashset implements a set backed by a hash table.
Structure is not thread safe.
References: http://en.wikipedia.org/wiki/Set_%28abstract_data_type%29
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set holds elements in go's native map
func (*Set) Add ¶
func (set *Set) Add(items ...interface{})
Add adds the items (one or more) to the set.
func (*Set) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
func (*Set) Remove ¶
func (set *Set) Remove(items ...interface{})
Remove removes the items (one or more) from the set.
Click to show internal directories.
Click to hide internal directories.