ds

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	Add(interface{})
	Remove(interface{})
	Contains(interface{}) bool
	Size() int
}

type Iterator

type Iterator interface {
	HasMore() bool
	Next() (interface{}, error)
}

type Set

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

func NewSet

func NewSet() Set

func (*Set) Add

func (s *Set) Add(e interface{})

func (*Set) Contains

func (s *Set) Contains(e interface{}) bool

func (*Set) NewIterator

func (s *Set) NewIterator() (*SetIterator, error)

func (*Set) Remove

func (s *Set) Remove(e interface{})

func (Set) Size

func (s Set) Size() int

type SetIterator

type SetIterator struct {
	*Set
	// contains filtered or unexported fields
}

func (SetIterator) HasMore

func (iter SetIterator) HasMore() bool

func (*SetIterator) Next

func (iter *SetIterator) Next() (interface{}, error)

type Void

type Void struct{}

Jump to

Keyboard shortcuts

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