set

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: GPL-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 NewHashSet

func NewHashSet() *HashSet

new HashSet

func (*HashSet) Add

func (hashSet *HashSet) Add(e gotypes.Element) *HashSet

add element

func (*HashSet) Clear

func (hashSet *HashSet) Clear()

Clear set

func (*HashSet) Contains

func (hashSet *HashSet) Contains(e gotypes.Element) bool

check e contains

func (*HashSet) Filter

func (hashSet *HashSet) Filter(filterFn func(e gotypes.Element) bool) *HashSet

filter function

func (*HashSet) ForEach

func (hashSet *HashSet) ForEach(fn func(e gotypes.Element))

foreach function

func (*HashSet) Map

func (hashSet *HashSet) Map(mapFn func(e gotypes.Element) gotypes.Element) *HashSet

map function

func (*HashSet) MatchAll

func (hashSet *HashSet) MatchAll(matchAllFn func(e gotypes.Element) bool) bool

matchAll function

func (*HashSet) MatchAny

func (hashSet *HashSet) MatchAny(matchAnyFn func(e gotypes.Element) bool) bool

matchAny function

func (*HashSet) MatchNone

func (hashSet *HashSet) MatchNone(matchNoneFn func(e gotypes.Element) bool) bool

matchNone function

func (*HashSet) Reduce

func (hashSet *HashSet) Reduce(val gotypes.Element, reduceFn func(val gotypes.Element, e gotypes.Element) gotypes.Element) gotypes.Element

reduce function

func (*HashSet) Remove

func (hashSet *HashSet) Remove(e gotypes.Element)

remove element

func (*HashSet) Size

func (hashSet *HashSet) Size() int

return set size

Jump to

Keyboard shortcuts

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