setutils

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedSet

type FixedSet struct {
	// contains filtered or unexported fields
}

FixedSet TODO 解决已存在元素不能按顺序弹出的问题

func NewFixedSet

func NewFixedSet(maxSize int) *FixedSet

func (*FixedSet) Has

func (this *FixedSet) Has(item any) bool

func (*FixedSet) Push

func (this *FixedSet) Push(item any)

func (*FixedSet) Reset

func (this *FixedSet) Reset()

func (*FixedSet) Size

func (this *FixedSet) Size() int

Jump to

Keyboard shortcuts

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