Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func From ¶
func From[T comparable](e collections.Enumerator[T], capacity ...int) collections.Set[T]
From creates a new set with unsorted values populated with values from the given enumerator.
The values will be returned in random order when enumeration and may have different orders per enumeration.
func New ¶
func New[T comparable](capacity ...int) collections.Set[T]
New creates a new set with unsorted values.
The values will be returned in random order when enumeration and may have different orders per enumeration.
If one capacity value is given, an empty underlying map is allocated with enough space to hold the specified number of elements. The capacity may be omitted, in which case a small starting size is allocated.
func With ¶
func With[T comparable](values ...T) collections.Set[T]
With creates a new set initialized with the given values.
The values will be returned in random order when enumeration and may have different orders per enumeration.
Types ¶
This section is empty.