Documentation ¶
Index ¶
- type ArrayList
- func (arrayList *ArrayList) Add(e gotypes.Element) *ArrayList
- func (arrayList *ArrayList) Clear()
- func (arrayList *ArrayList) Filter(filterFn func(e *gotypes.Element) bool) *ArrayList
- func (arrayList *ArrayList) ForEach(fn func(e *gotypes.Element))
- func (arrayList *ArrayList) Get(index int) *gotypes.Element
- func (arrayList *ArrayList) Map(mapFn func(e *gotypes.Element) gotypes.Element) *ArrayList
- func (arrayList *ArrayList) MatchAll(matchAllFn func(e *gotypes.Element) bool) bool
- func (arrayList *ArrayList) MatchAny(matchAnyFn func(e *gotypes.Element) bool) bool
- func (arrayList *ArrayList) MatchNone(matchNoneFn func(e *gotypes.Element) bool) bool
- func (arrayList *ArrayList) Reduce(val gotypes.Element, ...) gotypes.Element
- func (arrayList *ArrayList) Remove(index int) *gotypes.Element
- func (arrayList *ArrayList) Size() int
- type LinkedElement
- type LinkedList
- func (linkedList *LinkedList) Add(e gotypes.Element) *LinkedList
- func (linkedList *LinkedList) Clear()
- func (linkedList *LinkedList) Filter(filterFn func(e *LinkedElement) bool) *LinkedList
- func (linkedList *LinkedList) ForEach(fn func(e *LinkedElement))
- func (linkedList *LinkedList) Head() *LinkedElement
- func (linkedList *LinkedList) Map(mapFn func(e *LinkedElement) gotypes.Element) *LinkedList
- func (linkedList *LinkedList) MatchAll(matchAllFn func(e *LinkedElement) bool) bool
- func (linkedList *LinkedList) MatchAny(matchAnyFn func(e *LinkedElement) bool) bool
- func (linkedList *LinkedList) MatchNone(matchNoneFn func(e *LinkedElement) bool) bool
- func (linkedList *LinkedList) Peek() *LinkedElement
- func (linkedList *LinkedList) Reduce(val gotypes.Element, ...) gotypes.Element
- func (linkedList *LinkedList) Size() int
- func (linkedList *LinkedList) Tail() *LinkedElement
- func (linkedList *LinkedList) Take() *LinkedElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayList ¶
type ArrayList struct {
// contains filtered or unexported fields
}
Define ArrayList struct
func (*ArrayList) Reduce ¶
func (arrayList *ArrayList) Reduce(val gotypes.Element, reduceFn func(val gotypes.Element, e *gotypes.Element) gotypes.Element) gotypes.Element
reduce function
type LinkedElement ¶
Define LinkedElement struct
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
Define LinkedList struct
func (*LinkedList) Add ¶
func (linkedList *LinkedList) Add(e gotypes.Element) *LinkedList
add element into tail
func (*LinkedList) Filter ¶
func (linkedList *LinkedList) Filter(filterFn func(e *LinkedElement) bool) *LinkedList
filter function
func (*LinkedList) ForEach ¶
func (linkedList *LinkedList) ForEach(fn func(e *LinkedElement))
foreach function
func (*LinkedList) Map ¶
func (linkedList *LinkedList) Map(mapFn func(e *LinkedElement) gotypes.Element) *LinkedList
map function
func (*LinkedList) MatchAll ¶
func (linkedList *LinkedList) MatchAll(matchAllFn func(e *LinkedElement) bool) bool
matchAll function
func (*LinkedList) MatchAny ¶
func (linkedList *LinkedList) MatchAny(matchAnyFn func(e *LinkedElement) bool) bool
matchAny function
func (*LinkedList) MatchNone ¶
func (linkedList *LinkedList) MatchNone(matchNoneFn func(e *LinkedElement) bool) bool
matchNone function
func (*LinkedList) Peek ¶
func (linkedList *LinkedList) Peek() *LinkedElement
return tail and remove it
func (*LinkedList) Reduce ¶
func (linkedList *LinkedList) Reduce(val gotypes.Element, reduceFn func(val gotypes.Element, e *LinkedElement) gotypes.Element) gotypes.Element
reduce function
func (*LinkedList) Take ¶
func (linkedList *LinkedList) Take() *LinkedElement
return head and remove it
Click to show internal directories.
Click to hide internal directories.