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 represents a generic set data structure.
func New ¶
func New[T comparable](elements ...T) Set[T]
New creates a new set and initializes it with the provided elements.
Click to show internal directories.
Click to hide internal directories.