Skip to content

sharkpick/set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

package set

package set implements a Set interface for types defined by constraints.Ordered (https://pkg.go.dev/golang.org/x/exp/constraints)

Important Types and Functions

type Set[T constraints.Ordered] interface {
	Add(T) bool
	AddSlice([]T) []bool
	Contains(T) bool
	ContainsSlice([]T) []bool
	Drop(T) bool
	DropSlice([]T) []bool
	Len() int
	Reset()
	Slice() []T
}

About

provides a generic set of constraints.Ordered types

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages