setKit

package
v2.8.115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewGset func(safe ...bool) *gset.Set = gset.NewSet

NewGset Deprecated: 存储的元素类型为 interface{}.

@param safe 是否并发安全?

View Source
var NewGsetFrom func(items interface{}, safe ...bool) *gset.Set = gset.NewFrom

NewGsetFrom Deprecated: 存储的元素类型为 interface{}.

@param items (1) 切片实例(元素类型不限)

(2) 可以为nil

@param safe 是否并发安全?

Functions

func NewSet

func NewSet[T comparable](threadSafe bool, args ...T) mapset.Set[T]

NewSet

@param threadSafe 是否并发安全?

func NewSetFromMapKeys

func NewSetFromMapKeys[T comparable, V any](threadSafe bool, val map[T]V) mapset.Set[T]

func NewSetWithSize added in v2.1.54

func NewSetWithSize[T comparable](threadSafe bool, cardinality int) mapset.Set[T]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL