Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] struct { Set map[T]bool }
Set is a set of Ts
func (*Set[T]) AddRange ¶
func (set *Set[T]) AddRange(ss []T)
AddRange adds a list of elements to a set
func (*Set[T]) ContainsAny ¶
ContainsAny checks if any of the elements exist
Click to show internal directories.
Click to hide internal directories.