Versions in this module Expand all Collapse all v0 v0.5.2 Dec 10, 2017 v0.5.1 Nov 6, 2017 Changes in this version type Sorted + func (s *Sorted) Remove(i int) (err error) v0.5.0 May 31, 2017 Changes in this version + func Equals(a, b types.IterableContainer) bool + func Hash(a types.ListIterable) int + func Less(a, b types.IterableContainer) bool + func NewSortable(list *List) sort.Interface + type List struct + func Fixed(size int) *List + func FromSlice(list []types.Hashable) *List + func New(initialSize int) *List + func (l *List) Append(item types.Hashable) error + func (l *List) Clear() + func (l *List) Copy() *List + func (l *List) Empty() bool + func (l *List) Equals(b types.Equatable) bool + func (l *List) Extend(it types.KIterator) (err error) + func (l *List) Full() bool + func (l *List) Get(i int) (item types.Hashable, err error) + func (l *List) Has(item types.Hashable) (has bool) + func (l *List) Hash() int + func (l *List) Insert(i int, item types.Hashable) error + func (l *List) Items() (it types.KIterator) + func (l *List) ItemsInReverse() (it types.KIterator) + func (l *List) Less(b types.Sortable) bool + func (l *List) Pop() (item types.Hashable, err error) + func (l *List) Push(item types.Hashable) error + func (l *List) Remove(i int) error + func (l *List) Set(i int, item types.Hashable) (err error) + func (l *List) Size() int + func (l *List) String() string + type MList struct + MarshalItem types.ItemMarshal + UnmarshalItem types.ItemUnmarshal + func NewMList(list *List, marshal types.ItemMarshal, unmarshal types.ItemUnmarshal) *MList + func (m *MList) MarshalBinary() ([]byte, error) + func (m *MList) UnmarshalBinary(bytes []byte) error + type MSorted struct + AllowDups bool + func NewMSorted(s *Sorted, marshal types.ItemMarshal, unmarshal types.ItemUnmarshal) *MSorted + func (m *MSorted) MarshalBinary() ([]byte, error) + func (m *MSorted) Sorted() *Sorted + func (m *MSorted) UnmarshalBinary(bytes []byte) error + type Sortable struct + func (s *Sortable) Len() int + func (s *Sortable) Less(i, j int) bool + func (s *Sortable) Swap(i, j int) + type Sorted struct + func NewFixedSorted(size int, allowDups bool) *Sorted + func NewSorted(initialSize int, allowDups bool) *Sorted + func SortedFromSlice(items []types.Hashable, allowDups bool) *Sorted + func (s *Sorted) Add(item types.Hashable) (err error) + func (s *Sorted) Clear() + func (s *Sorted) Copy() *Sorted + func (s *Sorted) Delete(item types.Hashable) (err error) + func (s *Sorted) Empty() bool + func (s *Sorted) Equals(b types.Equatable) bool + func (s *Sorted) Extend(other types.KIterator) (err error) + func (s *Sorted) Find(item types.Hashable) (int, bool, error) + func (s *Sorted) Full() bool + func (s *Sorted) Get(i int) (item types.Hashable, err error) + func (s *Sorted) Has(item types.Hashable) (has bool) + func (s *Sorted) Hash() int + func (s *Sorted) Item(item types.Hashable) (types.Hashable, error) + func (s *Sorted) Items() (it types.KIterator) + func (s *Sorted) ItemsInReverse() (it types.KIterator) + func (s *Sorted) Less(b types.Sortable) bool + func (s *Sorted) Size() int + func (s *Sorted) String() string