set

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 5 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[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any](items ...V) *Set[V]

func (*Set[V]) Do

func (s *Set[V]) Do(f func(V))

func (*Set[V]) Insert

func (s *Set[V]) Insert(item V)

func (*Set[V]) Len

func (s *Set[V]) Len() int

func (*Set[V]) MarshalMsgpack

func (s *Set[V]) MarshalMsgpack() ([]byte, error)

func (*Set[V]) UnmarshalMsgpack

func (s *Set[V]) UnmarshalMsgpack(input []byte) error

Jump to

Keyboard shortcuts

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