Documentation
¶
Overview ¶
Package set provides a minimal generic set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
Set is an unordered collection of unique values. It is not safe for concurrent use.
func (Set[T]) Cardinality ¶
Cardinality returns the number of items in the set.
func (Set[T]) Difference ¶
Difference returns a new set of the items in s that are not in other.
Click to show internal directories.
Click to hide internal directories.