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 { // Size returns the size of the set Size() int // Add adds the given value to the set Add(value T) // Remove removes the given value from the set Remove(value T) // Contains returns true if the set contains the given value Contains(value T) bool // Clear clears the set Clear() misc.Cloner[Set[T]] iter.Iterable[T] // SetIterator returns an iterator over the set SetIterator() Iterator[T] // Stream streams elements of the set Stream(yield func(T) bool) }
Set is an interface that represents a set of elements
Click to show internal directories.
Click to hide internal directories.