Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentSet ¶
type ConcurrentSet[O constraints.Ordered] struct { // contains filtered or unexported fields }
func NewConcurrentSet ¶
func NewConcurrentSet[O constraints.Ordered](vals ...O) ConcurrentSet[O]
func (*ConcurrentSet[O]) Add ¶
func (c *ConcurrentSet[O]) Add(val O)
func (*ConcurrentSet[O]) Contains ¶
func (c *ConcurrentSet[O]) Contains(val O) bool
func (*ConcurrentSet[O]) Len ¶
func (c *ConcurrentSet[O]) Len() int
func (*ConcurrentSet[O]) Remove ¶
func (c *ConcurrentSet[O]) Remove(val O)
Click to show internal directories.
Click to hide internal directories.