sortedlist

package
v0.0.0-...-5bc13c5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 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 Iter

type Iter interface {
	Next() bool
	Value() interface{}
}

Iter 迭代器对象

type List

type List interface {
	// Remove 移除节点
	Remove(key int64) bool

	// Add 新增节点
	Add(key int64, data interface{})

	// Range 过滤范围内的 key 并返回 Iter 对象
	Range(lower, upper int64) Iter

	// All 迭代所有对象
	All() Iter
}

List 实现了排序链表的数据结构

func NewTree

func NewTree() List

NewTree 生成 AVL 树

Jump to

Keyboard shortcuts

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