sets

package
v0.0.0-...-a2bc238 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

type StringSet interface {
	Insert(items ...string)
	Delete(items ...string)
	Clear() []string
	Replace(items ...string)
	Has(item string) bool
	HasAll(items ...string) bool
	HasAny(items ...string) bool
	IsSuperset(right StringSet) bool
	IsSubset(right StringSet) bool
	Equal(right StringSet) bool
	Diff(right StringSet) StringSet
	Union(right StringSet) StringSet
	Intersection(right StringSet) StringSet
	List() []string
	SortedList() []string
	PopAny() (string, bool)
	Len() int
}

StringSet operations for string keys

func NewStringSet

func NewStringSet(items ...string) StringSet

NewStringSet create a StringSet from a string slice

Jump to

Keyboard shortcuts

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