Documentation
¶
Index ¶
- func Add(element IElement)
- func Clear()
- func Iter() func() IElement
- func IterElement(function func(element IElement) bool)
- func Len() int
- func Remove(element IElement)
- func Removes(elements []IElement)
- type IElement
- type LinkedList
- func (lst *LinkedList) Add(element IElement)
- func (lst *LinkedList) Clear()
- func (lst *LinkedList) Get(n int) (elements []IElement)
- func (lst *LinkedList) Has(element IElement) IElement
- func (lst *LinkedList) Iter() func() IElement
- func (lst *LinkedList) IterElement(function func(element IElement) bool) bool
- func (lst *LinkedList) Len() int
- func (lst *LinkedList) Remove(element IElement)
- func (lst *LinkedList) RemoveAll() (elements []IElement)
- func (lst *LinkedList) RemoveBefore(element IElement) (elements []IElement)
- func (lst *LinkedList) Removes(elements []IElement)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterElement ¶
IterElement Iter, thread safe
Types ¶
type IElement ¶
type IElement interface {
Serialize() []byte
}
IElement Interface for element of LinkedList
func RemoveBefore ¶
RemoveBefore Remove elements before element
type LinkedList ¶
LinkedList Define LinkedList struct
func (*LinkedList) Get ¶
func (lst *LinkedList) Get(n int) (elements []IElement)
Get Get num elements from head
func (*LinkedList) IterElement ¶
func (lst *LinkedList) IterElement(function func(element IElement) bool) bool
IterElement Iter, thread safe
func (*LinkedList) RemoveAll ¶
func (lst *LinkedList) RemoveAll() (elements []IElement)
RemoveAll Remove all elements
func (*LinkedList) RemoveBefore ¶
func (lst *LinkedList) RemoveBefore(element IElement) (elements []IElement)
RemoveBefore Remove elements before element
func (*LinkedList) Removes ¶
func (lst *LinkedList) Removes(elements []IElement)
Removes Remove element
Click to show internal directories.
Click to hide internal directories.