Documentation
¶
Index ¶
- func Equal[Elem comparable](s1, s2 Set[Elem]) bool
- type Set
- func (s Set[Elem]) Add(v Elem)
- func (s Set[Elem]) AddSet(s2 Set[Elem])
- func (s Set[Elem]) Contains(v Elem) bool
- func (s Set[Elem]) Copy() Set[Elem]
- func (s Set[Elem]) Delete(v Elem)
- func (s Set[Elem]) Filter(f func(Elem) bool)
- func (s Set[Elem]) Intersect(s2 Set[Elem])
- func (s Set[Elem]) Iterate(f func(Elem))
- func (s Set[Elem]) Len() int
- func (s Set[Elem]) SubSet(s2 Set[Elem])
- func (s Set[Elem]) Values() []Elem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[Elem comparable](s1, s2 Set[Elem]) bool
Types ¶
type Set ¶
type Set[Elem comparable] map[Elem]struct{}
func Make ¶
func Make[Elem comparable]() Set[Elem]
Click to show internal directories.
Click to hide internal directories.