internal

package
v0.0.0-...-0462949 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySlice

func CopySlice[T any](slice []T) []T

func Pointer

func Pointer[T any](v T) *T

func RandomElement

func RandomElement[T any](slice []T) T

Types

type Set

type Set[T comparable] struct {
	// contains filtered or unexported fields
}

func NewEmptySet

func NewEmptySet[T comparable]() *Set[T]

func NewSet

func NewSet[T comparable](values []T) *Set[T]

func NewSetVariadic

func NewSetVariadic[T comparable](values ...T) *Set[T]

func (*Set[T]) Clear

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

func (*Set[T]) Contains

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

func (*Set[T]) Delete

func (s *Set[T]) Delete(v T)

func (*Set[T]) Equal

func (s *Set[T]) Equal(b *Set[T]) bool

func (*Set[T]) Len

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

func (*Set[T]) List

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

func (*Set[T]) Put

func (s *Set[T]) Put(v T)

func (*Set[T]) PutMany

func (s *Set[T]) PutMany(vs []T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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