Documentation
¶
Index ¶
- type Element
- type LinkedList
- func (ll *LinkedList) Back() *Element
- func (ll *LinkedList) Front() *Element
- func (ll *LinkedList) Init() *LinkedList
- func (ll *LinkedList) Len() int
- func (ll *LinkedList) ModifyRoot(e *Element) *LinkedList
- func (ll *LinkedList) Print()
- func (ll *LinkedList) PushBack(val interface{}) *Element
- func (ll *LinkedList) PushFront(val interface{}) *Element
- func (ll *LinkedList) Remove(e *Element) *Element
- func (ll *LinkedList) ReversedIterative() *LinkedList
- func (ll *LinkedList) ReversedRecursive(e *Element) *LinkedList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
func ArrayToLinkedList ¶
func ArrayToLinkedList(arr *[]interface{}) *LinkedList
func (*LinkedList) Back ¶
func (ll *LinkedList) Back() *Element
func (*LinkedList) Front ¶
func (ll *LinkedList) Front() *Element
func (*LinkedList) Init ¶
func (ll *LinkedList) Init() *LinkedList
Clears the linkedlist and initializes the root element
func (*LinkedList) ModifyRoot ¶
func (ll *LinkedList) ModifyRoot(e *Element) *LinkedList
func (*LinkedList) Print ¶
func (ll *LinkedList) Print()
func (*LinkedList) PushBack ¶
func (ll *LinkedList) PushBack(val interface{}) *Element
func (*LinkedList) PushFront ¶
func (ll *LinkedList) PushFront(val interface{}) *Element
func (*LinkedList) Remove ¶
func (ll *LinkedList) Remove(e *Element) *Element
func (*LinkedList) ReversedIterative ¶
func (ll *LinkedList) ReversedIterative() *LinkedList
func (*LinkedList) ReversedRecursive ¶
func (ll *LinkedList) ReversedRecursive(e *Element) *LinkedList
Click to show internal directories.
Click to hide internal directories.