Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator[T any] interface { HasNext() bool Next() bool GetNext() (T, bool) GetCurrent() (T, bool) }
Iterator is an iterator over a OrderedMap.
type OrderedMap ¶
type OrderedMap[T any] interface { Len() int Set(key any, val T) Get(key any) (T, bool) Delete(key any) (T, bool) Index(key any) int ReplaceKey(oldKey any, newKey any) bool SetBefore(presentKey any, newKey any, val T) (int, bool) SetAfter(presentKey any, newKey any, val T) (int, bool) GetIterator() Iterator[T] }
OrderedMap is a map with ordered keys
Click to show internal directories.
Click to hide internal directories.