Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSafeSet ¶
func NewSafeSet[T constraints.Ordered](capacity int) *safeSet[T]
Types ¶
type ISet ¶
type ISet[T comparable] interface { Add(item T) AddSlice(items []T) Remove(item T) Contains(item T) bool Slice() []T }
type Set ¶
type Set[T comparable] map[T]struct{}
func NewSet ¶
func NewSet[T comparable](capacity int) Set[T]
Click to show internal directories.
Click to hide internal directories.