hashset

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashSet

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

Define HashSet struct

func New

func New() *HashSet

New HashSet

func (*HashSet) Clear

func (s *HashSet) Clear()

Clear HashSet

func (*HashSet) Contains

func (s *HashSet) Contains(e gotypes.E) bool

Check contains

func (*HashSet) Count

func (s *HashSet) Count(matchFunc matchFunc) int

Count function

func (*HashSet) Delete

func (s *HashSet) Delete(e gotypes.E) *HashSet

Delete element

func (*HashSet) Filter

func (s *HashSet) Filter(matchFunc matchFunc) *HashSet

Filter function

func (*HashSet) ForEach

func (s *HashSet) ForEach(eachFunc eachFunc)

ForEach function

func (*HashSet) Map

func (s *HashSet) Map(mapFunc mapFunc) *HashSet

Map function

func (*HashSet) MatchAll

func (s *HashSet) MatchAll(matchFunc matchFunc) bool

MatchAll function

func (*HashSet) MatchAny

func (s *HashSet) MatchAny(matchFunc matchFunc) bool

MatchAny function

func (*HashSet) MatchNone

func (s *HashSet) MatchNone(matchFunc matchFunc) bool

MatchNone function

func (*HashSet) Reduce

func (s *HashSet) Reduce(val gotypes.E, reduceFunc reduceFunc) gotypes.E

Count function

func (*HashSet) Set

func (s *HashSet) Set(e gotypes.E) *HashSet

Set element

func (*HashSet) Size

func (s *HashSet) Size() int

Return HashSet size

Jump to

Keyboard shortcuts

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