memset

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemSet

type MemSet struct {
	// contains filtered or unexported fields
}

Operation is MemSet this is struct base of consice set

func NewMemSet

func NewMemSet() *MemSet

NewMemSet is contructor

func (MemSet) Add

func (concurrentSet MemSet) Add(value uint64) bool

Add is method for add element

func (MemSet) Array

func (concurrentSet MemSet) Array() []uint64

Array return array with element of set

func (MemSet) Contains

func (concurrentSet MemSet) Contains(value uint64) bool

Contains validate is exist element in set

func (MemSet) Diff

func (concurrentSet MemSet) Diff(set2 MemSet) MemSet

Diff calulate difference operation

func (MemSet) Intersection

func (concurrentSet MemSet) Intersection(set2 MemSet) MemSet

Intersection calulate this operation

func (MemSet) Remove

func (concurrentSet MemSet) Remove(value uint64) bool

Remove is method for remove element

func (MemSet) Size

func (concurrentSet MemSet) Size() uint64

Size return lengh of MemSet

func (MemSet) SymDiff

func (concurrentSet MemSet) SymDiff(set2 MemSet) MemSet

SymDiff calulate Symetric difference operation

func (MemSet) Union

func (concurrentSet MemSet) Union(set2 MemSet) MemSet

Union calulate this operation

Jump to

Keyboard shortcuts

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