Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](set Set[T], e T) bool
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
func FromList ¶
func FromList[T comparable](list []T) Set[T]
func FromListMap ¶
func FromListMap[T, V comparable](list []T, f func(T) V) Set[V]
Click to show internal directories.
Click to hide internal directories.