Versions in this module Expand all Collapse all v1 v1.0.1 Mar 4, 2024 v1.0.0 Apr 10, 2023 Changes in this version + const DefaultMaxLevel + type Iterator interface + Close func() + Key func() interface{} + Next func() (ok bool) + Previous func() (ok bool) + Seek func(key interface{}) (ok bool) + Value func() interface{} + type Ordered interface + LessThan func(other Ordered) bool + type Set struct + func NewCustomSet(lessThan func(l, r interface{}) bool) *Set + func NewIntSet() *Set + func NewSet() *Set + func NewStringSet() *Set + func (s *Set) Add(key interface{}) + func (s *Set) Contains(key interface{}) bool + func (s *Set) GetMaxLevel() int + func (s *Set) Iterator() Iterator + func (s *Set) Len() int + func (s *Set) Range(from, to interface{}) Iterator + func (s *Set) Remove(key interface{}) (ok bool) + func (s *Set) SetMaxLevel(newMaxLevel int) + type SkipList struct + MaxLevel int + func New() *SkipList + func NewCustomMap(lessThan func(l, r interface{}) bool) *SkipList + func NewIntMap() *SkipList + func NewStringMap() *SkipList + func (s *SkipList) Delete(key interface{}) (value interface{}, ok bool) + func (s *SkipList) Get(key interface{}) (value interface{}, ok bool) + func (s *SkipList) GetElementByRank(rank int) (interface{}, bool) + func (s *SkipList) GetGreaterOrEqual(min interface{}) (actualKey, value interface{}, ok bool) + func (s *SkipList) GetRank(key interface{}) int + func (s *SkipList) Iterator() Iterator + func (s *SkipList) Len() int + func (s *SkipList) Range(from, to interface{}) Iterator + func (s *SkipList) Seek(key interface{}) Iterator + func (s *SkipList) SeekToFirst() Iterator + func (s *SkipList) SeekToLast() Iterator + func (s *SkipList) Set(key, value interface{})