Documentation
¶
Overview ¶
Package readyset provides a simple set implementation.
Elements in the set must be hashable (e.g., no slices)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set map[interface{}]struct{}
Set is a container for arbitrary data which ensures that duplicates elements will not be stored multiple times.
func Intersection ¶
Intersection returns a set containing all elements contained in both given sets.
func NewSet ¶
func NewSet(in ...interface{}) Set
NewSet creates a new Set containing the given elements.
func Union ¶
Intersection returns a set containing all elements contained in either of the given sets.
func (Set) Remove ¶
func (set Set) Remove(is ...interface{})
Remove removes the given elements from the set.
Click to show internal directories.
Click to hide internal directories.