Documentation ¶
Index ¶
- type Cmp
- type Comparable
- type Node
- type SkipList
- func (s *SkipList) First() *Node
- func (s *SkipList) Get(k Comparable) *Node
- func (s *SkipList) Insert(k Comparable, v interface{}) *Node
- func (s *SkipList) Last() *Node
- func (s *SkipList) Len() uint
- func (s *SkipList) Merge(t *SkipList)
- func (s *SkipList) Remove(k Comparable) interface{}
- func (s *SkipList) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
type Comparable interface {
Compare(Comparable) Cmp
}
type Node ¶
type Node struct { Key Comparable Value interface{} // contains filtered or unexported fields }
func (*Node) Get ¶
func (n *Node) Get(k Comparable) *Node
func (*Node) Insert ¶
func (n *Node) Insert(k Comparable, v interface{}) *Node
func (*Node) Reposition ¶
func (n *Node) Reposition(k Comparable)
type SkipList ¶
type SkipList struct {
// contains filtered or unexported fields
}
func (*SkipList) Get ¶
func (s *SkipList) Get(k Comparable) *Node
func (*SkipList) Insert ¶
func (s *SkipList) Insert(k Comparable, v interface{}) *Node
func (*SkipList) Remove ¶
func (s *SkipList) Remove(k Comparable) interface{}
Click to show internal directories.
Click to hide internal directories.