Documentation ¶
Index ¶
- type Set
- func (s *Set[T]) Add(value T)
- func (s *Set[T]) AllMatch(predicate function.Predicate[T]) bool
- func (s *Set[T]) AnyMatch(predicate function.Predicate[T]) bool
- func (s *Set[T]) Clear()
- func (s *Set[T]) Filter(predicate function.Predicate[T])
- func (s *Set[T]) ForEach(consumer function.Consumer[T])
- func (s *Set[T]) Has(value T) bool
- func (s *Set[T]) NoneMatch(predicate function.Predicate[T]) bool
- func (s *Set[T]) Reduce(operator function.Operator[T]) T
- func (s *Set[T]) Remove(value T)
- func (s *Set[T]) Size() int
- func (s *Set[T]) Values() []T
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]() *Set[T]
Click to show internal directories.
Click to hide internal directories.