set

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 1 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[T comparable] struct {
	// contains filtered or unexported fields
}

func FromArray

func FromArray[T comparable](keys []T) Set[T]

func New added in v0.3.1

func New[T comparable]() Set[T]

func (*Set[T]) Add

func (s *Set[T]) Add(key T)

func (*Set[T]) Clone

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

func (Set[T]) Delete added in v0.3.1

func (s Set[T]) Delete(key T)

func (Set[T]) Len added in v0.3.1

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

func (Set[T]) Member added in v0.3.1

func (s Set[T]) Member(key T) bool

func (Set[T]) ToArray

func (s Set[T]) ToArray() []T

Jump to

Keyboard shortcuts

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