Documentation
¶
Index ¶
- func Add[T cmp.Ordered](set map[T]struct{}, values ...T) map[T]struct{}
- func Contains[T cmp.Ordered](set map[T]struct{}, value T) bool
- func ContainsAll[T cmp.Ordered](set map[T]struct{}, values ...T) bool
- func ContainsAllOther[T cmp.Ordered](set map[T]struct{}, other map[T]struct{}) bool
- func ContainsAny[T cmp.Ordered](set map[T]struct{}, values ...T) bool
- func ContainsAnyOther[T cmp.Ordered](set map[T]struct{}, other map[T]struct{}) bool
- func New[T cmp.Ordered](values ...T) map[T]struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add adds the passed values to the set and returns the set. If the passed set is nil, a new set is created.
func ContainsAll ¶
ContainsAll returns true if the set contains all of the passed values.
func ContainsAllOther ¶
ContainsAllOther returns true if the set contains all of the values in the other set.
func ContainsAny ¶
ContainsAny returns true if the set contains any of the passed values.
func ContainsAnyOther ¶
ContainsAnyOther returns true if the set contains any of the values in the other set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.