Documentation
¶
Index ¶
- type Treap
- func (t *Treap[T]) At(k uint) (T, error)
- func (t *Treap[T]) Clear()
- func (t *Treap[T]) Contains(value T) bool
- func (t *Treap[T]) Delete(value T)
- func (t *Treap[T]) Empty() bool
- func (t *Treap[T]) Index(value T) uint
- func (t *Treap[T]) Insert(value T)
- func (t *Treap[T]) Predecessor(value T) (T, error)
- func (t *Treap[T]) Size() uint
- func (t *Treap[T]) Successor(value T) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Treap ¶
type Treap[T constraints.Ordered] struct { // contains filtered or unexported fields }
func New ¶
func New[T constraints.Ordered]() *Treap[T]
func (*Treap[T]) Predecessor ¶
Click to show internal directories.
Click to hide internal directories.