Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T any] interface { // Add adds an element to the set. Add(element T) // Clear removes all elements from the set. Clear() // Contains returns true if the set contains the given element. Contains(element T) bool // IsEmpty returns true if the set is empty. IsEmpty() bool // Remove removes the given element from the set. Remove(element T) // Size returns the number of elements in the set. Size() int ToSlice() []T Iterator() iterable.Iterator[T] }
func NewConcurrentUnordered ¶ added in v0.3.0
func NewConcurrentUnorderedSize ¶ added in v0.3.0
func NewUnordered ¶
Creates a new unordered set that implements the Set[T] interface.
func NewUnorderedSize ¶
Creates a new unordered set with an expected size, that implements the Set[T] interface.
Click to show internal directories.
Click to hide internal directories.