Documentation
¶
Overview ¶
Package sets provides generic sets.
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 a convenience wrapper around map[T]struct{}.
func (Set[T]) Intersect ¶
Intersect returns a new set holding the elements that are common to s and t.
Click to show internal directories.
Click to hide internal directories.