Documentation ¶
Index ¶
- func TypeFor[T any]() reflect.Type
- type Int
- type Iter
- type Ordered
- type Treap
- func (t *Treap[T]) BulkDelete(values []T)
- func (t *Treap[T]) BulkUpsert(values []T)
- func (t *Treap[T]) Copy() *Treap[T]
- func (t *Treap[T]) Delete(value T) (deleted bool)
- func (t *Treap[T]) Get(pivot T) (ret T, ok bool)
- func (t *Treap[T]) Length() int
- func (t *Treap[T]) NewIter() *Iter[T]
- func (t *Treap[T]) Union(t2 *Treap[T])
- func (t *Treap[T]) Upsert(value T) (existed bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Treap ¶
type Treap[T Ordered[T]] struct { // contains filtered or unexported fields }
func (*Treap[T]) BulkDelete ¶
func (t *Treap[T]) BulkDelete(values []T)
func (*Treap[T]) BulkUpsert ¶
func (t *Treap[T]) BulkUpsert(values []T)
Click to show internal directories.
Click to hide internal directories.