set

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set interface {
	Contains(string) bool
	Add(string) bool
	Remove(string)
	Len() int
	IsEmpty() bool
	Clear()
	Elements() []string
	String() string
	Same(Set) bool      // 是否相同, 指所包含的元素是否都一致
	Intersect(Set) Set  // 交集
	Difference(Set) Set // 差集
	Union(Set) Set      // 并集
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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