Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](s Set[T], x T) bool
Check if set contains specified element.
func Values ¶
func Values[T comparable](s Set[T]) []T
Get values of set as slice; order is not predictable. Will return an empty non-nil slice in case the set is empty.
Types ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
Set. Always create sets with the New() function, do not use unininizialized sets (i.e. sets having the zero value).
Click to show internal directories.
Click to hide internal directories.