Documentation ¶
Index ¶
- type Splay
- func (t *Splay[T]) At(k uint) (T, error)
- func (t *Splay[T]) Clear()
- func (t *Splay[T]) Contains(value T) bool
- func (t *Splay[T]) Delete(value T)
- func (t *Splay[T]) Empty() bool
- func (t *Splay[T]) Index(value T) uint
- func (t *Splay[T]) Insert(value T)
- func (t *Splay[T]) Predecessor(value T) (T, error)
- func (t *Splay[T]) Size() uint
- func (t *Splay[T]) Successor(value T) (T, error)
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]) Predecessor ¶
Click to show internal directories.
Click to hide internal directories.