Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashSet ¶
type HashSet[T comparable] map[T]struct{}
HashSet is unordered set of unique elements. It's built on top of map, so you can iterate over set like over map:
hashSet := containers.NewHashSet[string]() for element := range hashSet { fmt.Println(element) }
func New ¶
func New[T comparable](elements ...T) HashSet[T]
Click to show internal directories.
Click to hide internal directories.