goset

package
v0.0.0-...-2bc18d8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: BSD-2-Clause Imports: 1 Imported by: 0

README

goset

Golang Set implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Set

type Int64Set struct {
	Map map[int64]struct{}
}

func NewInt64Set

func NewInt64Set(values ...int64) *Int64Set

func (*Int64Set) Add

func (a *Int64Set) Add(elements ...int64) *Int64Set

func (*Int64Set) AddSet

func (a *Int64Set) AddSet(b *Int64Set) *Int64Set

func (*Int64Set) Contains

func (a *Int64Set) Contains(elements ...int64) bool

func (*Int64Set) ContainsSet

func (a *Int64Set) ContainsSet(b *Int64Set) bool

func (*Int64Set) InterSection

func (a *Int64Set) InterSection(b *Int64Set) *Int64Set

func (*Int64Set) Remove

func (a *Int64Set) Remove(elements ...int64) *Int64Set

func (*Int64Set) RemoveSet

func (a *Int64Set) RemoveSet(b *Int64Set) *Int64Set

func (*Int64Set) Size

func (a *Int64Set) Size() int

func (*Int64Set) ToSortedSlice

func (a *Int64Set) ToSortedSlice() []int64

type Int64Slice

type Int64Slice []int64

func (Int64Slice) Len

func (p Int64Slice) Len() int

func (Int64Slice) Less

func (p Int64Slice) Less(i, j int) bool

func (Int64Slice) Swap

func (p Int64Slice) Swap(i, j int)

type IntSet

type IntSet struct {
	Map map[int]struct{}
}

func NewIntSet

func NewIntSet(values ...int) *IntSet

func (*IntSet) Add

func (a *IntSet) Add(elements ...int) *IntSet

func (*IntSet) AddSet

func (a *IntSet) AddSet(b *IntSet) *IntSet

func (*IntSet) Contains

func (a *IntSet) Contains(elements ...int) bool

func (*IntSet) ContainsSet

func (a *IntSet) ContainsSet(b *IntSet) bool

func (*IntSet) InterSection

func (a *IntSet) InterSection(b *IntSet) *IntSet

func (*IntSet) Remove

func (a *IntSet) Remove(elements ...int) *IntSet

func (*IntSet) RemoveSet

func (a *IntSet) RemoveSet(b *IntSet) *IntSet

func (*IntSet) Size

func (a *IntSet) Size() int

func (*IntSet) ToSortedSlice

func (a *IntSet) ToSortedSlice() []int

type InterfaceSet

type InterfaceSet struct {
	Map map[interface{}]struct{}
}

func NewInterfaceSet

func NewInterfaceSet(values ...interface{}) *InterfaceSet

func (*InterfaceSet) Add

func (a *InterfaceSet) Add(elements ...interface{}) *InterfaceSet

func (*InterfaceSet) AddSet

func (a *InterfaceSet) AddSet(b *InterfaceSet) *InterfaceSet

func (*InterfaceSet) Contains

func (a *InterfaceSet) Contains(elements ...interface{}) bool

func (*InterfaceSet) ContainsSet

func (a *InterfaceSet) ContainsSet(b *InterfaceSet) bool

func (*InterfaceSet) InterSection

func (a *InterfaceSet) InterSection(b *InterfaceSet) *InterfaceSet

func (*InterfaceSet) Remove

func (a *InterfaceSet) Remove(elements ...interface{}) *InterfaceSet

func (*InterfaceSet) RemoveSet

func (a *InterfaceSet) RemoveSet(b *InterfaceSet) *InterfaceSet

func (*InterfaceSet) Size

func (a *InterfaceSet) Size() int

type StringSet

type StringSet struct {
	Map map[string]struct{}
}

func NewStringSet

func NewStringSet(values ...string) *StringSet

func (*StringSet) Add

func (a *StringSet) Add(elements ...string) *StringSet

func (*StringSet) AddSet

func (a *StringSet) AddSet(b *StringSet) *StringSet

func (*StringSet) Contains

func (a *StringSet) Contains(elements ...string) bool

func (*StringSet) ContainsSet

func (a *StringSet) ContainsSet(b *StringSet) bool

func (*StringSet) InterSection

func (a *StringSet) InterSection(b *StringSet) *StringSet

func (*StringSet) Remove

func (a *StringSet) Remove(elements ...string) *StringSet

func (*StringSet) RemoveSet

func (a *StringSet) RemoveSet(b *StringSet) *StringSet

func (*StringSet) Size

func (a *StringSet) Size() int

func (*StringSet) ToSortedSlice

func (a *StringSet) ToSortedSlice() []string

Jump to

Keyboard shortcuts

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