Documentation ¶
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]unit
Set is an unordered set of values of type T.
func FromKeys ¶
func FromKeys[M ~map[K]V, K comparable, V any](m M) Set[K]
FromKeys builds a set from the keys of a map.
func FromSlice ¶
func FromSlice[T comparable](keys []T) Set[T]
FromSlice returns a set containing the values in the given slice.
Click to show internal directories.
Click to hide internal directories.