Documentation ¶
Index ¶
- 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
- 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
- type MSorted
- type Sortable
- type 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) Remove(i int) (err error)
- func (s *Sorted) Size() int
- func (s *Sorted) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equals ¶
func Equals(a, b types.IterableContainer) bool
func Hash ¶
func Hash(a types.ListIterable) int
func Less ¶
func Less(a, b types.IterableContainer) bool
func NewSortable ¶
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) ItemsInReverse ¶
type MList ¶
type MList struct { List MarshalItem types.ItemMarshal UnmarshalItem types.ItemUnmarshal }
func NewMList ¶
func NewMList(list *List, marshal types.ItemMarshal, unmarshal types.ItemUnmarshal) *MList
func (*MList) MarshalBinary ¶
func (*MList) UnmarshalBinary ¶
type MSorted ¶
func NewMSorted ¶
func NewMSorted(s *Sorted, marshal types.ItemMarshal, unmarshal types.ItemUnmarshal) *MSorted
func (*MSorted) MarshalBinary ¶
func (*MSorted) UnmarshalBinary ¶
type Sorted ¶
type Sorted struct {
// contains filtered or unexported fields
}
func NewFixedSorted ¶
Creates a fixed size sorted list.
func (*Sorted) ItemsInReverse ¶
Click to show internal directories.
Click to hide internal directories.