circle

package
v1.2.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key = interface{}

type List

type List interface {
	Size() int
	Put(key Key) (old Key)
	Traverse(func(key Key) bool)  // from low to high
	TraverseR(func(key Key) bool) // from high to low
	Reset()
}

func NewList

func NewList(total int) List

type Map

type Map interface {
	Get(key Key) (Value, bool)
	Put(key Key, value Value)
	Traverse(TraverseFn)
	Size() int
}

func NewMap

func NewMap(total int) Map

type TraverseFn

type TraverseFn = func(key Key, value Value) bool

type Value

type Value = interface{}

Jump to

Keyboard shortcuts

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