Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
Set is a generic set implementation
func NewSet ¶
func NewSet[T comparable](capacity int) Set[T]
NewSet creates a new set with optional initial capacity
Click to show internal directories.
Click to hide internal directories.