skiplist

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Node
	// contains filtered or unexported fields
}

type Node

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

type SkipList

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

func New

func New() *SkipList

Create a skip list.

func (*SkipList) Delete

func (s *SkipList) Delete(key string)

Delete data from the skip list.

func (*SkipList) Get

func (s *SkipList) Get(key string) (any, bool)

Get data from the skip list.

func (*SkipList) Len

func (s *SkipList) Len() int

Get length from the skip list.

func (*SkipList) Set

func (s *SkipList) Set(key string, value any)

Set data to the skip list.

Jump to

Keyboard shortcuts

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