skip

package
v0.0.0-...-604e922 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2013 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkipList

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

func New

func New(less func(interface{}, interface{}) bool) *SkipList

Create a new skip list

func (*SkipList) Do

func (this *SkipList) Do(f func(interface{}, interface{}) bool)

func (*SkipList) Get

func (this *SkipList) Get(key interface{}) interface{}

Get an item from the skip list

func (*SkipList) Insert

func (this *SkipList) Insert(key interface{}, value interface{})

Insert a new item into the skip list

func (*SkipList) Len

func (this *SkipList) Len() int

Get the length of the skip list

func (*SkipList) Remove

func (this *SkipList) Remove(key interface{}) interface{}

Remove an item from the skip list

func (*SkipList) String

func (this *SkipList) String() string

String representation of the list

Jump to

Keyboard shortcuts

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