Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapSet ¶
type MapSet[T comparable] map[T]struct{}
func NewMapSet ¶
func NewMapSet[T comparable](values ...T) MapSet[T]
type OrderedSet ¶
type OrderedSet[T comparable] struct { // contains filtered or unexported fields }
func NewOrderedSet ¶
func NewOrderedSet[T comparable](values ...T) *OrderedSet[T]
func (*OrderedSet[T]) Add ¶
func (s *OrderedSet[T]) Add(values ...T)
func (*OrderedSet[T]) All ¶
func (s *OrderedSet[T]) All() iter.Seq[T]
func (*OrderedSet[T]) Clone ¶
func (s *OrderedSet[T]) Clone() Set[T]
func (*OrderedSet[T]) Delete ¶
func (s *OrderedSet[T]) Delete(values ...T)
func (*OrderedSet[T]) Get ¶
func (s *OrderedSet[T]) Get(i int) T
func (*OrderedSet[T]) Has ¶
func (s *OrderedSet[T]) Has(value T) bool
func (*OrderedSet[T]) Len ¶
func (s *OrderedSet[T]) Len() int
type Set ¶
type Set[T comparable] interface { Add(v ...T) Delete(v ...T) Has(v T) bool Len() int All() iter.Seq[T] Clone() Set[T] }
func New ¶
func New[T comparable](values ...T) Set[T]
type SliceSet ¶
func NewSliceSet ¶
Click to show internal directories.
Click to hide internal directories.