Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type OrderedSet ¶
type OrderedSet[E comparable] struct { // contains filtered or unexported fields }
func NewOrderedSet ¶
func NewOrderedSet[E comparable](vals ...E) *OrderedSet[E]
func (*OrderedSet[E]) Add ¶
func (s *OrderedSet[E]) Add(vals ...E)
func (*OrderedSet[E]) Clear ¶
func (s *OrderedSet[E]) Clear()
func (*OrderedSet[E]) Contains ¶
func (s *OrderedSet[E]) Contains(v E) bool
func (*OrderedSet[E]) IsEmpty ¶
func (s *OrderedSet[E]) IsEmpty() bool
func (*OrderedSet[E]) Iter ¶
func (s *OrderedSet[E]) Iter() iter.Seq[E]
func (*OrderedSet[E]) Len ¶
func (s *OrderedSet[E]) Len() int
func (*OrderedSet[E]) Slice ¶
func (s *OrderedSet[E]) Slice() []E
type Set ¶
type Set[E comparable] struct { // contains filtered or unexported fields }
func Intersection ¶
func Intersection[E comparable](s, s2 Collection[E]) *Set[E]
func NewSet ¶
func NewSet[E comparable](vals ...E) *Set[E]
func Union ¶
func Union[E comparable](s, s2 Collection[E]) *Set[E]
Click to show internal directories.
Click to hide internal directories.