Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomElement ¶
func RandomElement[T any](slice []T) T
Types ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewEmptySet ¶
func NewEmptySet[T comparable]() *Set[T]
func NewSet ¶
func NewSet[T comparable](values []T) *Set[T]
func NewSetVariadic ¶
func NewSetVariadic[T comparable](values ...T) *Set[T]
Click to show internal directories.
Click to hide internal directories.