tree

package
Version: v0.0.0-...-b4d8f81 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareFunc

type CompareFunc func(a, b interface{}) int

type Tree

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

func MakeTree

func MakeTree(cf CompareFunc) *Tree

func (*Tree) Delete

func (t *Tree) Delete(val interface{}) (interface{}, bool)

func (*Tree) Dump

func (t *Tree) Dump()

func (*Tree) Find

func (t *Tree) Find(val interface{}) (interface{}, bool)

func (*Tree) ForEach

func (t *Tree) ForEach(vf VisitFunc)

func (*Tree) ForEachReverse

func (t *Tree) ForEachReverse(vf VisitFunc)

func (*Tree) Insert

func (t *Tree) Insert(val interface{})

type VisitFunc

type VisitFunc func(a interface{})

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL