abstract

package
v0.0.0-...-f98563f Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(s Set1) string

Types

type Set1

type Set1 interface {
	Count() int
	String() string
	IsNone() bool
	IsAll() bool
	Has(int) bool
	LessCount(int) int
	MoreCount(int) int
	Min() int
	Max() int
	Each() iter.Seq[int]
	Ranges() iter.Seq2[int, int]
}

Set1 has the common value methods not requiring a type parameter.

type Set2

type Set2 interface {
	Set1
	Add(int)
	Remove(int)
	SetNot()
	SetNone()
	SetAll()
}

Set2 has the common pointer methods not requiring a type parameter.

type Set3

type Set3[T Set1] interface {
	Set1
	Equal(T) bool
	Compare(T) int
	HasNone(T) bool
	HasAll(T) bool
	AndCount(T) int
	Not() T
	Sub(T) T
	And(T) T
	Or(T) T
	Xor(T) T
	Nor(T) T
	Iff(T) T
	Imply(T) T
}

Set3 has the common value methods.

type Set4

type Set4[T Set1] interface {
	Set2
	Set3[T]
	Assign(T)
	SetSub(T)
	SetAnd(T)
	SetOr(T)
	SetXor(T)
	SetNor(T)
	SetIff(T)
	SetImply(T)
}

Set4 has all methods.

Jump to

Keyboard shortcuts

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