Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapSet ¶
type MapSet[T comparable] struct { // contains filtered or unexported fields }
func NewMapSet ¶
func NewMapSet[T comparable](size int) *MapSet[T]
type Set ¶
type Set[T comparable] interface { Add(key T) Delete(key T) // Exist 返回是否存在这个元素 Exist(key T) bool Keys() []T }
type TreeSet ¶
type TreeSet[T any] struct { // contains filtered or unexported fields }
func NewTreeSet ¶
func NewTreeSet[T any](compare ekit.Comparator[T]) (*TreeSet[T], error)
Click to show internal directories.
Click to hide internal directories.