set

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 4 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 map[any]bool

func Of

func Of(elements ...any) Set

func (*Set) Add

func (s *Set) Add(element any) *Set

func (*Set) Clear

func (s *Set) Clear() *Set

func (Set) Copy

func (s Set) Copy() Set

func (Set) Difference

func (s Set) Difference(another Set) Set

func (*Set) Discard

func (s *Set) Discard(element any) bool

func (Set) Empty

func (s Set) Empty() bool

func (Set) Equal

func (s Set) Equal(another Set) bool

func (Set) Has

func (s Set) Has(element any) bool

func (Set) Intersection

func (s Set) Intersection(another Set) Set

func (Set) IsDisjoint

func (s Set) IsDisjoint(another Set) bool

func (Set) IsSubset

func (s Set) IsSubset(another Set) bool

func (Set) IsSuperset

func (s Set) IsSuperset(another Set) bool

func (Set) MarshalJSON

func (s Set) MarshalJSON() ([]byte, error)

func (*Set) Pop

func (s *Set) Pop() (element any, err error)

func (Set) Size

func (s Set) Size() int

func (Set) String

func (s Set) String() string

func (Set) SymmetricDifference

func (s Set) SymmetricDifference(another Set) Set

func (Set) Union

func (s Set) Union(another Set) Set

func (*Set) UnmarshalJSON

func (s *Set) UnmarshalJSON(data []byte) (err error)

func (*Set) Update

func (s *Set) Update(another Set) *Set

Jump to

Keyboard shortcuts

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