rb

package
v0.0.0-...-dd1cd55 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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 Node

type Node[K constraints.Ordered, V any] struct {
	Pair Pair[K, V]
	// contains filtered or unexported fields
}

type Pair

type Pair[K constraints.Ordered, V any] struct {
	Key   K
	Value V
}

type Tree

type Tree[K constraints.Ordered, V any] struct {
	// contains filtered or unexported fields
}

func (*Tree[K, V]) Inorder

func (t *Tree[K, V]) Inorder() []Pair[K, V]

func (*Tree[K, V]) Insert

func (t *Tree[K, V]) Insert(p Pair[K, V])

func (*Tree[K, V]) Search

func (t *Tree[K, V]) Search(k K) (V, bool)

Jump to

Keyboard shortcuts

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