teaset

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 3 Imported by: 0

README

go-teaset

The "Set" data structure for golang

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
}

func NewHashSet

func NewHashSet() *HashSet

func (*HashSet) Add

func (s *HashSet) Add(v interface{})

func (*HashSet) AddAll

func (s *HashSet) AddAll(l ...interface{})

func (*HashSet) Clear

func (s *HashSet) Clear()

func (*HashSet) Contains

func (s *HashSet) Contains(v interface{}) bool

func (*HashSet) ContainsAll

func (s *HashSet) ContainsAll(l ...interface{}) bool

func (*HashSet) Len

func (s *HashSet) Len() int

func (*HashSet) Remove

func (s *HashSet) Remove(v interface{})

func (*HashSet) RemoveAll

func (s *HashSet) RemoveAll(l ...interface{})

func (*HashSet) ToSlice

func (s *HashSet) ToSlice() []interface{}

ToSlice returns an slice containing all of the elements in this set.

type TreeSet

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

func NewTreeSet

func NewTreeSet(compare func(interface{}, interface{}) int) *TreeSet

func (*TreeSet) Add

func (s *TreeSet) Add(v interface{})

func (*TreeSet) AddAll

func (s *TreeSet) AddAll(l ...interface{})

func (*TreeSet) Clear

func (s *TreeSet) Clear()

func (*TreeSet) Contains

func (s *TreeSet) Contains(v interface{}) bool

func (*TreeSet) ContainsAll

func (s *TreeSet) ContainsAll(l ...interface{}) bool

func (*TreeSet) Len

func (s *TreeSet) Len() int

func (*TreeSet) Remove

func (s *TreeSet) Remove(v interface{})

func (*TreeSet) RemoveAll

func (s *TreeSet) RemoveAll(l ...interface{})

func (*TreeSet) ToSlice

func (s *TreeSet) ToSlice() []interface{}

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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