splay

package
v2.0.0-...-fba89a2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Splay

type Splay[T constraints.Ordered] struct {
	// contains filtered or unexported fields
}

func New

func New[T constraints.Ordered]() *Splay[T]

func (*Splay[T]) At

func (t *Splay[T]) At(k uint) (T, error)

func (*Splay[T]) Clear

func (t *Splay[T]) Clear()

func (*Splay[T]) Contains

func (t *Splay[T]) Contains(value T) bool

func (*Splay[T]) Delete

func (t *Splay[T]) Delete(value T)

func (*Splay[T]) Empty

func (t *Splay[T]) Empty() bool

func (*Splay[T]) Index

func (t *Splay[T]) Index(value T) uint

func (*Splay[T]) Insert

func (t *Splay[T]) Insert(value T)

func (*Splay[T]) Predecessor

func (t *Splay[T]) Predecessor(value T) (T, error)

func (*Splay[T]) Size

func (t *Splay[T]) Size() uint

func (*Splay[T]) Successor

func (t *Splay[T]) Successor(value T) (T, error)

Jump to

Keyboard shortcuts

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