Documentation ¶
Index ¶
- func Slice(s Iterable) []interface{}
- func Sort(data []interface{}, cmp CompareFunction)
- func SortIndexed(data []interface{}, cmp CompareIndexedFunction)
- func SortView(data []interface{}, mapping []int, cmp CompareFunction)
- func StringArraySlice(s Iterable) [][]string
- type Appender
- type CompareFunction
- type CompareIndexedFunction
- type DLL
- type DLLRoot
- type ElementIterator
- type IndexedAccess
- type IndexedIterator
- type IndexedSliceAccess
- func (this *IndexedSliceAccess) Add(elems ...interface{}) *IndexedSliceAccess
- func (this IndexedSliceAccess) Copy() IndexedSliceAccess
- func (this IndexedSliceAccess) Get(i int) interface{}
- func (this IndexedSliceAccess) Iterator() Iterator
- func (this IndexedSliceAccess) Len() int
- func (this *IndexedSliceAccess) Move(i, j, k int) *IndexedSliceAccess
- func (this *IndexedSliceAccess) Remove(i int) *IndexedSliceAccess
- func (this IndexedSliceAccess) Sort(cmp CompareFunction) IndexedSliceAccess
- func (this IndexedSliceAccess) SortIndexed(cmp CompareIndexedFunction) IndexedSliceAccess
- type Iterable
- type Iterator
- type LinkedList
- type ListElement
- type MappedIterator
- type MappingFunction
- type ResettableIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort(data []interface{}, cmp CompareFunction)
func SortIndexed ¶
func SortIndexed(data []interface{}, cmp CompareIndexedFunction)
func SortView ¶
func SortView(data []interface{}, mapping []int, cmp CompareFunction)
func StringArraySlice ¶
Types ¶
type Appender ¶
type Appender interface {
Append(interface{}) ListElement
}
type CompareFunction ¶
type CompareFunction func(interface{}, interface{}) int
type CompareIndexedFunction ¶
type ElementIterator ¶
type ElementIterator interface { HasNext() bool NextElement() ListElement }
type IndexedAccess ¶
type IndexedIterator ¶
type IndexedIterator struct {
// contains filtered or unexported fields
}
func NewIndexedIterator ¶
func NewIndexedIterator(a IndexedAccess) *IndexedIterator
func NewSliceIterator ¶
func NewSliceIterator(slice []interface{}) *IndexedIterator
func (*IndexedIterator) HasNext ¶
func (this *IndexedIterator) HasNext() bool
func (*IndexedIterator) Next ¶
func (this *IndexedIterator) Next() interface{}
func (*IndexedIterator) Reset ¶
func (this *IndexedIterator) Reset()
type IndexedSliceAccess ¶
type IndexedSliceAccess []interface{}
func (*IndexedSliceAccess) Add ¶
func (this *IndexedSliceAccess) Add(elems ...interface{}) *IndexedSliceAccess
func (IndexedSliceAccess) Copy ¶
func (this IndexedSliceAccess) Copy() IndexedSliceAccess
func (IndexedSliceAccess) Get ¶
func (this IndexedSliceAccess) Get(i int) interface{}
func (IndexedSliceAccess) Iterator ¶
func (this IndexedSliceAccess) Iterator() Iterator
func (IndexedSliceAccess) Len ¶
func (this IndexedSliceAccess) Len() int
func (*IndexedSliceAccess) Move ¶
func (this *IndexedSliceAccess) Move(i, j, k int) *IndexedSliceAccess
Move [i:j] to [k:].
func (*IndexedSliceAccess) Remove ¶
func (this *IndexedSliceAccess) Remove(i int) *IndexedSliceAccess
func (IndexedSliceAccess) Sort ¶
func (this IndexedSliceAccess) Sort(cmp CompareFunction) IndexedSliceAccess
func (IndexedSliceAccess) SortIndexed ¶
func (this IndexedSliceAccess) SortIndexed(cmp CompareIndexedFunction) IndexedSliceAccess
type Iterator ¶
type Iterator interface { HasNext() bool Next() interface{} }
func ElementIteratorAsIterator ¶
func ElementIteratorAsIterator(i ElementIterator) Iterator
func NewMappedIterator ¶
func NewMappedIterator(iter Iterator, mapping MappingFunction) Iterator
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
func NewLinkedList ¶
func NewLinkedList() *LinkedList
func (*LinkedList) Append ¶
func (ll *LinkedList) Append(e interface{}) ListElement
func (*LinkedList) ElementIterator ¶
func (ll *LinkedList) ElementIterator() ElementIterator
func (*LinkedList) Iterator ¶
func (ll *LinkedList) Iterator() Iterator
func (*LinkedList) New ¶
func (ll *LinkedList) New() *LinkedList
type ListElement ¶
type ListElement interface { Set(interface{}) Get() interface{} Append(interface{}) ListElement Insert(interface{}) ListElement }
type MappedIterator ¶
type MappedIterator struct { Iterator // contains filtered or unexported fields }
func (*MappedIterator) Next ¶
func (mi *MappedIterator) Next() interface{}
type MappingFunction ¶
type MappingFunction func(interface{}) interface{}
type ResettableIterator ¶
type ResettableIterator interface { HasNext() bool Next() interface{} Reset() }
Click to show internal directories.
Click to hide internal directories.