sets

package
v0.13.0-alpha.120 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT 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[T comparable] struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet[T comparable](elements ...T) *Set[T]

func (*Set[T]) Add

func (s *Set[T]) Add(elements ...T)

func (*Set[T]) Clear

func (s *Set[T]) Clear()

func (*Set[T]) Contains

func (s *Set[T]) Contains(element T) bool

func (*Set[T]) Difference

func (s *Set[T]) Difference(other *Set[T])

func (*Set[T]) Intersection

func (s *Set[T]) Intersection(other *Set[T])

func (*Set[T]) List

func (s *Set[T]) List() []T

func (*Set[T]) Remove

func (s *Set[T]) Remove(elements ...T)

func (*Set[T]) Size

func (s *Set[T]) Size() int

func (*Set[T]) Union

func (s *Set[T]) Union(other *Set[T])

Jump to

Keyboard shortcuts

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