Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](elems []T, v T) bool
Contains iterates the collection returning true if found
Types ¶
type Set ¶
type Set[T constraints.Ordered] map[T]int
Set tracks items added keeping the total number of each individual item added.
func (Set[T]) AddWithValue ¶ added in v0.1.8
Add an item, incrementing the count
func (Set[T]) OrderedKeys ¶
func (s Set[T]) OrderedKeys() []T
OrderedKeys returns the keys ordered in ascending order
Click to show internal directories.
Click to hide internal directories.