kinds

package
v0.0.0-...-b1b21d8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: LGPL-3.0 Imports: 1 Imported by: 0

README

功能概述 类型库

  • 集合类型

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set[T comparable] struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet[T comparable](strs ...T) *Set[T]

新建客户端

func (*Set[T]) Add

func (obj *Set[T]) Add(value T)

添加元素

func (*Set[T]) Array

func (obj *Set[T]) Array() []T

返回数组

func (*Set[T]) Del

func (obj *Set[T]) Del(value T) bool

删除元素

func (*Set[T]) Has

func (obj *Set[T]) Has(value T) bool

判断元素是否存在

func (*Set[T]) Len

func (obj *Set[T]) Len() int

返回元素长度

func (*Set[T]) Map

func (obj *Set[T]) Map() map[T]struct{}

func (*Set[T]) ReSet

func (obj *Set[T]) ReSet()

重置

Jump to

Keyboard shortcuts

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