Versions in this module Expand all Collapse all v0 v0.1.0 Apr 9, 2020 Changes in this version + type Compare func(a, b interface{}) int + type Item interface + type ItemVisitor func(i Item) bool + type Treap struct + func NewTreap(c Compare) *Treap + func (t *Treap) Delete(target Item) *Treap + func (t *Treap) Get(target Item) Item + func (t *Treap) Max() Item + func (t *Treap) Min() Item + func (t *Treap) Upsert(item Item, itemPriority int) *Treap + func (t *Treap) VisitAscend(pivot Item, visitor ItemVisitor)