Documentation ¶
Overview ¶
Package set implements a set data structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T any] struct { Data []T }
Set is a set data structure of type T
func (*Set[T]) IndexOrAdd ¶
IndexOrAdd returns the existing or the new index of the value, it returns true if the value existed, false if new.
Click to show internal directories.
Click to hide internal directories.